funkcja_plot.m
来自「Inverted pendulum in cart controled by t」· M 代码 · 共 13 行
M
13 行
function[]=funkcja_plot(u)
x=u(1);
o=u(2);
hold off
plot([x-2,x+2,x+2,x-2,x-2],[-0.2,-0.2,0.2,0.2,-0.2])
AXIS([-5 20 -2 2])
hold on
plot([x,x+5*cos(o)],[0,sin(o)],'g')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?