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

7 ビュー (過去 30 日間)
JW
JW 2022 年 7 月 2 日
コメント済み: JW 2022 年 7 月 3 日
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.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by