How to store an array of values in for loop?

1 回表示 (過去 30 日間)
Casey
Casey 2012 年 2 月 2 日
コメント済み: Niklas Kurz 2021 年 1 月 23 日
I am unsure on how to store an array of values in a for loop? example:
for i=1:10 A=(R*5)+(Y*6); end;
% A represents the array.
When i type A, i could not get the set of array values.

採用された回答

Krishnendu Mukherjee
Krishnendu Mukherjee 2012 年 2 月 2 日
for i=1:10 A(:,i)=(R*5)+(Y*6); end you can try this
  3 件のコメント
uthara
uthara 2015 年 12 月 11 日
thank you so much
Niklas Kurz
Niklas Kurz 2021 年 1 月 23 日
genius

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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