basic array with for loop

1 回表示 (過去 30 日間)
Trader
Trader 2012 年 3 月 22 日
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
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
Jan 2012 年 3 月 22 日
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.

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by