x_(n+1) plotting
Show older comments
hello, i have simple series, 

i wish to plot this equation for r[1,5]
how should i do it?
I tried to do a function but because the value squared and the r changes it dosnt converge,
It's part of a pretty urgent physical study so I'd love someone to help me!
Even a beginner's guide to series of this kind
9 Comments
Torsten
on 15 Jan 2022
What do you mean by r[1,5] ?
You want to plot two series, one for r=1 and one for r=5 ?
Keren Grinberg
on 15 Jan 2022
Torsten
on 15 Jan 2022
i need to cpmare this equation to others that look like that:
What does cpmare mean ?
What is the value for x_0 you are supposed to use ?
Torsten
on 15 Jan 2022
Ah, google was successful associating "compare" with "cpmare"
Keren Grinberg
on 15 Jan 2022
Which recursion is used for the graphics you included ?
Can you give a link to a publication ?
I thought your problem was just as easy as
x0 = 0.2;
niter = 5;
R=(0:0.1:5).';
N = numel(R);
x = zeros(1,niter);
X = [];
for i=1:N
r = R(i);
x(1) = x0;
for j=1:niter-1
x(j+1) = r*x(j)*(1-x(j));
end
X = [X;x];
end
plot(R,X)
but now I have doubts if this is really what you are aiming at.
Keren Grinberg
on 15 Jan 2022
Torsten
on 15 Jan 2022
And you can't describe the real task ?
Keren Grinberg
on 15 Jan 2022
Answers (0)
Categories
Find more on Physics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

