Looping to create multiple variables?

10 次查看(过去 30 天)
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!

请先登录,再进行评论。

采纳的回答

KL
KL 2017-10-13
编辑:KL 2017-10-13

更多回答(1 个)

Image Analyst
Image Analyst 2017-10-13

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by