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 个评论

What do you mean by r[1,5] ?
You want to plot two series, one for r=1 and one for r=5 ?
no, i mean r = linspace(0,5)
i need to cpmare this equation to others that look like that:
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 ?
Ah, google was successful associating "compare" with "cpmare"
compare sorry,
In fact the u represents a turbulent flow velocity so it is difficult to define zero conditions, but for r = 1 the initial velocity is 0
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.
no but ill try to use this, thank you very much
And you can't describe the real task ?
i can but i dont know if it will help for solve this,
i have an equation: () which describes an equation representing a turbulent flow. In my calculations I have done an average for this equation and right now I want to compare the average obtained (as can be seen in the graphs) to

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Physics 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by