Concatenating array using for loop
Show older comments
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
Accepted Answer
More Answers (1)
A loop is not required:
tmp = Cure.neat;
A = [tmp(1:9).temps];
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!