Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (unklerhaukus):

The logistic map

OpenStudy (unklerhaukus):

OpenStudy (anonymous):

So... er... what's the question?

OpenStudy (unklerhaukus):

my MABLAB code isn't working at all, what bit do i need to fix

OpenStudy (unklerhaukus):

r=2.4:1.6/49:4.0; % parameter of the logistic map X0=0.5; % initial population N=50; % maximum n=1:N; X(1)=X0; % initial value for n=1:N; X(n+1)=r.*X(n).*(1-X(n)); end plot3( n, X(n),'k.') % chart

OpenStudy (anonymous):

Just a guess since I haven't used MATLAB in a while but try removing the semicolon after the for expression. for n=1:N X(n+1)=r.*X(n).*(1-X(n)); end

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!