x_(n+1) plotting
显示 更早的评论
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 个评论
Torsten
2022-1-15
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
2022-1-15
Torsten
2022-1-15
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
2022-1-15
Ah, google was successful associating "compare" with "cpmare"
Keren Grinberg
2022-1-15
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
2022-1-15
Torsten
2022-1-15
And you can't describe the real task ?
Keren Grinberg
2022-1-15
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Physics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


