We'll take this code:
n = 30;
x = ones(1, n);
for i=1:n
x(i+1)=r*x(i)*(1-x(i));
endfor
The equation is just an example. Is it possible to vectorize it?
We'll take this code:
n = 30;
x = ones(1, n);
for i=1:n
x(i+1)=r*x(i)*(1-x(i));
endfor
The equation is just an example. Is it possible to vectorize it?