⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 untitled5.m

📁 小数据量法计算 Lyapunov 指数的 Matlab 程序 - (mex 函数
💻 M
字号:
r=linspace(2,4,500);
initial=linspace(0.3,0.7,50);
trans=200;
k=1;
while k<50
    
    i=1;
    while i<=500
        x(1)=initial(k);
        j=1;
        while j<=(trans-1)
            x(j+1)=r(i)*x(j)*(1-x(j));
            j=j+1;
        end 
        a(i)=x(trans);
        b(i)=x(trans-1);
        c(i)=x(trans-2);
        d(i)=x(trans-3);
        i=i+1;
    end  
    plot(r,a,'.','Color','red');hold on;
    %set(findobj(gca,'Type','line'),'Color','red');
    plot(r,b,'.','Color','blue');hold on;
    %set(findobj(gca,'Type','line'),'Color','blue');
    plot(r,c,'.','Color','yellow');hold on;
    plot(r,d,'.','Color','green');
    k=k+1;
end 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -