determining number of inputs

2 ビュー (過去 30 日間)
maryam 94
maryam 94 2014 年 12 月 20 日
コメント済み: maryam 94 2014 年 12 月 20 日
hello. usually in matlab, we ask the user to enter a value once using this code x=input('message'). but what if we wanted the user to determine how many times to enter a value?

採用された回答

Thorsten
Thorsten 2014 年 12 月 20 日
N = ('How many times?');
for i=1:N
a(i) = ('your input');
end
  1 件のコメント
maryam 94
maryam 94 2014 年 12 月 20 日
thank you !

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by