フィルターのクリア

Looping to create multiple variables?

38 ビュー (過去 30 日間)
Amos Tan
Amos Tan 2017 年 10 月 13 日
コメント済み: Amos Tan 2017 年 10 月 14 日
I would like to run the following code 50 times, each time saving the output into a new variable (eg. s1, s2, s3,...,s50)
s = [reshape(randperm(32),[],1),randi(8,32,1)];
How would I do that?
Thank you! (sorry if this is a very trivial question, I'm new)
  2 件のコメント
Adam
Adam 2017 年 10 月 13 日
You should never want 50 variables in your workspace when 1 would do!
Amos Tan
Amos Tan 2017 年 10 月 14 日
thank you for the advice! (:

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

採用された回答

KL
KL 2017 年 10 月 13 日
編集済み: KL 2017 年 10 月 13 日
  1 件のコメント
Amos Tan
Amos Tan 2017 年 10 月 14 日
thank you for the links and for the code (:

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

その他の回答 (1 件)

Image Analyst
Image Analyst 2017 年 10 月 13 日
  1 件のコメント
Amos Tan
Amos Tan 2017 年 10 月 14 日
thank you (:

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

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by