I need help trying to write a code for a logistic map that requires a range of r between 0 and 5

2 次查看(过去 30 天)
I need help trying to write a code for a logistic map that requires a range of r between 0 and 5. I don't even know how to begin writing it. Thank you in advance for your help!

回答(1 个)

KALYAN ACHARJYA
KALYAN ACHARJYA 2022-7-3
Refer the following File Exchange FIle, it may be useful-
If it is useful for your own work, please give due credit to the author of the file
Michael (2022). Logistics Map (https://www.mathworks.com/matlabcentral/fileexchange/32424-logistics-map), MATLAB Central File Exchange. Retrieved July 3, 2022.
You may have to minor changes as per your requirements-
a = 0; % Initial r
b = 5; % final r
rs = linspace(a,b,N); % vector of "r" values
Hope it helps!
  1 个评论
JW
JW 2022-7-3
I tried the file you sent me ut unfortunately the value of r on the map does not increase past r=4 even with the modified script. What else can I do? My professor told me that the function should be a simple loop and that I can iterate over it.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by