Concatenating array using for loop
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
A loop is not required:
tmp = Cure.neat;
A = [tmp(1:9).temps];
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!