三维、二维以及时间序列图

6.三维、二维以及时间序列图:
耦合系统的函数程序:

function dx=ouhe(t,x)
dx=zeros(3,1);
a=3;u=2;
dx(1)=-u*x(1)+x(2)*(x(3)+a);
dx(2)=-u*x(2)+x(1)*(x(3)-a);
dx(3)=x(3)-x(1)*x(2);
图程序:
clc;
clear;
[t,x]=ode45('ouhe',[0 1000],[1 -1 1]);
subplot(2,2,1); plot(x(:,1),'k','markersize',0.5);
xlabel('t/ms','fontsize',12,'fontName','times new Roman','fontweight','bold','color','k');
ylabel('x','fontsize',12,'fontName','times new Roman','fontweight','bold','color','k');
subplot(2,2,2); plot(x(:,2),'k','markersize',0.5);
xlabel('t/ms','fontsize',12,'fontName','times new Roman','fontweight','bold','color','k');
ylabel('y','fontsize',12,'fontName','times new Roman','fontweight','bold','color','k');
subplot(2,2,3); plot(x(:,3),'k','markersize',0.5);
xlabel('t/ms','fontsize',12,'fontName','times new Roman','fontweight','bold','color','k');
ylabel('z','fontsize',12,'fontName','times new Roman','fontweight','bold','color','k');
subplot(2,2,4); plot3(x(:,1),x(:,2),x(:,3),'k','markersize',0.5);grid on;
xlabel('x','fontsize',12,'fontName','times new Roman','fontweight','bold','color','k');
ylabel('y','fontsize',12,'fontName','times new Roman','fontweight','bold','color','k');
zlabel('z','fontsize',12,'fontName','times new Roman','fontweight','bold','color','k');
figure(2);plot3(x(:,1),x(:,2),x(:,3),'k','markersize',0.5);grid on;
xlabel('\itx\rm_1','fontsize',20,'fontName','times new Roman','fontweight','bold','color','k');
ylabel('\itx\rm_2','fontsize',20,'fontName','times new Roman','fontweight','bold','color','k');
zlabel('\itx\rm_3','fontsize',20,'fontName','times new Roman','fontweight','bold','color','k');

在这里插入图片描述
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值