basic array with for loop
이전 댓글 표시
I would like to build an array while running a for loop as follows:
for 256:-1:1
...loop generates values like date, mean, std
end
i'd like to build a matrix that follows this format
1, date, mean, std
2, date, mean, std
3, date, mean, std
I know this is pretty basic, thank you for your time and any help you can provide.
댓글 수: 1
Aldin
2012년 3월 22일
Do like this:
a = {'22-03-2012',22,3;'22-03-2012',22,3;'22-03-2012',22,3}
답변 (1개)
Jan
2012년 3월 22일
0 개 추천
Please read the Getting Started chapters to learn the basics of Matlab. Then post what you have tried so far and which problems stopped your work.
카테고리
도움말 센터 및 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!