I would like to keep track of the output of a for loop, so that each output is assigned sequentially to a new variable from 'x1' to 'xn'.<br>In its most simplest form, I would like to be able to do this:<br>
<br>for i=1:n<br>x=i<br>end<br><div style="margin-left: 40px;">x1=1<br></div><div style="margin-left: 40px;">x2=2<br></div><div style="margin-left: 40px;">....<br></div><div style="margin-left: 40px;">xn=n<br></div><br>Where currently it outputs<br>
<div style="margin-left: 40px;">x=1<br></div><div style="margin-left: 40px;">x=2<br></div><div style="margin-left: 40px;">...<br></div><div style="margin-left: 40px;">x=n<br><br></div>Thanks<br>Matt<br>