# DATA COMBINATION AND ARRANGEMENT

2 vues (au cours des 30 derniers jours)
AMAN GUPTA le 23 Avr 2022
Réponse apportée : Voss le 23 Avr 2022
I have 4 variable D, E, F ,G.
D = -.0174+.0002*(0:4);
E = 370+ 1*(0:6);
F = 177+ 1*(0:6);
G = 0.01+.0005*(0:4);
So there will be total 5*7*7*5 = 1225 Combination.
I am attaching a CSV files in which pattern of the combination is given.
eg:
1st combinaton- -0.0174, 370, 177, 0.01
2nd combinaton- -0.0174, 370, 177, 0.0105
.
5th combinaton- -0.0174, 370, 177, 0.012
6th combinaton- -0.0174, 370, 178, 0.01
.
10th combinaton- -0.0174, 370, 178, 0.012
.
31th combinaton- -0.0174, 370, 183, 0.01
.
35th combinaton- -0.0174, 370, 183, 0.012
36th combinaton- -0.0174, 371, 177, 0.01
.
71th combination - -0.0174,372, 177, 0.01
.
210th combination - -0.0174, 376, 177, 0.01
.
246th combination - -0.0172,370, 177,0.01
.
981th combination - -0.0166, 370, 177, 0.01
.
1225 combination- -0.0166, 376, 183, 0.012
so D(1)=D(2)=..D(245)= -0.0174
D(246)= ....D (490)= -0.0172
E(1)= E(2)=..E(35)= 370
E(36)=...E(70)= 371
F(1)=...F(5)= 177
F(6)=...F(10)= 178
F(31)=...F(35)= 183
F(36)=..F(40)= 177
G(1)= 0.01, G(2)= 0.0105, G(5)=.012
G(6)= 0.01, G(7)= 0.0105, G(10)=.012
I want to get all the 1225 value of D , E, F , G
How can I get?
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Réponses (1)

Voss le 23 Avr 2022
D = -.0174+.0002*(0:4);
E = 370+ 1*(0:6);
F = 177+ 1*(0:6);
G = 0.01+.0005*(0:4);
[GG,FF,EE,DD] = ndgrid(G,F,E,D);
DEFG = [DD(:) EE(:) FF(:) GG(:)]
DEFG = 1225×4
-0.0174 370.0000 177.0000 0.0100 -0.0174 370.0000 177.0000 0.0105 -0.0174 370.0000 177.0000 0.0110 -0.0174 370.0000 177.0000 0.0115 -0.0174 370.0000 177.0000 0.0120 -0.0174 370.0000 178.0000 0.0100 -0.0174 370.0000 178.0000 0.0105 -0.0174 370.0000 178.0000 0.0110 -0.0174 370.0000 178.0000 0.0115 -0.0174 370.0000 178.0000 0.0120
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Catégories

En savoir plus sur Cell Arrays dans Help Center et File Exchange

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by