making loop that defines variables

1 回表示 (過去 30 日間)
Talaria
Talaria 2011 年 8 月 10 日
how to make a loop that would output variables and result the following:
code example: for i=1:x y'i'= 2*i end
output example:
y1=2 y2=4 y3=6 y4=8 ......etc.. where y1 to y10 are all variables created and defined by the loop itself.

採用された回答

Walter Roberson
Walter Roberson 2011 年 8 月 10 日

その他の回答 (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