?? ex0526.m
字號:
%解范德波爾(Van der Pol)微分方程
tspan=[0,30]; %起始值0和終止值30
y0=[1;0]; %初始值
[t,y]=ode45(@vdpol,tspan,y0); %解微分方程
y1=y(:,1);
y2=y(:,2);
figure(1)
plot(t,y1,':b',t,y2,'-r') %畫微分方程解
figure(2)
plot(y1,y2) %畫相平面圖
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -