I am trying to save the results obtained in the sub loop to the main loop but seems I am getting some errors; below is an example of what I need:
values=zeros(1,3); for x=1:3 result=zeros(1,10); for y=1:10 equation1=rand; %just for simplicity result(y)=equation1; %This is what I want to save in the main loop; in this case it would consist of 30 elements end equation2=sum(result); values(x)=equation2; end
Any ideas are appreciated!
Thanks in advance.
No products are associated with this question.