Info

此问题已关闭。 请重新打开它进行编辑或回答。

n*2 matrix which come from output--Row is not fixed but column is 2--- and that process rotate in loop 10 times save all values of loop in result matrix

1 次查看(过去 30 天)
a=18;
b=22;
for i=1:10
r1 = randi([18 22],1,1)
name= (b-a).*rand(r1,2) + a
end
save this all name matrix values which generate in each loop save in result matirx

回答(1 个)

Jan
Jan 2017-4-12
A guess:
name = cell(1, 10);
a = 18:
b = 22;
for i = 1:10
r1 = randi([18 22],1,1);
name{i} = (b-a) .* rand(r1, 2) + a;
end

此问题已关闭。

标签

尚未输入任何标签。

产品

Community Treasure Hunt

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

Start Hunting!

Translated by