Concatenating array using for loop
Ältere Kommentare anzeigen
I have a structure with some arrays listed like this from 1 to 9 :
Cure.neat(1).temps
Cure.neat(2).temps
.....
I would like to combine the arrays into one matrix such as:
A = [ Cure.neat(1).temps Cure.neat(2).temps etc... ]
for i = 1 :9
Akzeptierte Antwort
Weitere Antworten (1)
A loop is not required:
tmp = Cure.neat;
A = [tmp(1:9).temps];
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!