How to Use a For Loop to Dynamically Assign the Values of Struct Fields to a Matrix?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rightia Rollmann
am 4 Mär. 2017
Bearbeitet: Rightia Rollmann
am 5 Mär. 2017
How to use a for loop to dynamically assign the values of fields C, D, and G to a matrix?
if for loop is not possible, what else can do it? Imagine I have many fields and want it to be done programmatically
A.B.C = [1 2 3];
A.B.D = [4 5 6];
A.B.E = [7 8 9];
so the final matrix looks like:
1 2 3
4 5 6
7 8 9
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements 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!