MATLAB: How can i save the random numbers in one array/string? I have similar problem, so this is just an example. Don’t know how to explaine the other one

save rand() array string

for i = 1:10 rand() end
%is coming 10 random numbers ans = 1, ans = 7 ans = 4 osv.

Best Answer

rnvs=rand(10,1);
See
doc rand % for use