I have this Loop
m=0.05;fori=1:1000; r= poissrnd(m); t(1,i)= r;endt
there is an orange tag to right of this line "" t(1,i)=[r]; "" says ( the variable appears to change size on every loop iteration. consider preallocating for speed)
What should I do to make my loop more efficient?
Best Answer