DATA COMBINATION AND ARRANGEMENT
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
Please help me.
0 Kommentare
Antworten (1)
Voss
am 23 Apr. 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(:)]
0 Kommentare
Siehe auch
Kategorien
Mehr zu Cell Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!