here my code,
for j=1:3 for i=1:3a(i)=randi(10)endx(j)=a(i);end
this code is random 1-10 3 times eg: a=[1 3 9] let say
a(1)=[1 3 4] a(2)=[3 4 6] a(3)=[2 3 2]
i want to save x as something like this
x=[a(1) a(2) a(3)]
how to do that?can someone rectify my code? my code only work save the last data of a(i). i want to save 3 of them in x.
Best Answer