📄 ch11_e.m
字号:
% Run the inverted pendulum simulationopts = simset('InitialState',[0,0,0,0,0],'Solver','ode45') ;[t,x] = sim('sysmdl_i',[0:0.1:10],opts) ;% Plot the position and pendulum anglesubplot(2,1,1);plot(t,x(:,1));grid;ylabel('x');subplot(2,1,2);plot(t,x(:,4));grid;xlabel('Time (sec)') ;ylabel('theta');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -