chap8_6plot.m

来自「机器人控制仿真程序一书的所有源代码」· M 代码 · 共 37 行

M
37
字号
close all;

figure(1);
subplot(311);
plot(t,w(:,1),'r');
xlabel('time(s)');ylabel('w1');
subplot(312);
plot(t,w(:,2),'r');
xlabel('time(s)');ylabel('w2');
subplot(313);
plot(t,w(:,3),'r');
xlabel('time(s)');ylabel('w3');

figure(2);
subplot(411);
plot(t,q(:,1),'r');
xlabel('time(s)');ylabel('q1');
subplot(412);
plot(t,q(:,2),'r');
xlabel('time(s)');ylabel('q2');
subplot(413);
plot(t,q(:,3),'r');
xlabel('time(s)');ylabel('q3');
subplot(414);
plot(t,q(:,4),'r');
xlabel('time(s)');ylabel('q4');

figure(3);
subplot(311);
plot(t,M(:,1),'r');
xlabel('time(s)');ylabel('M1');
subplot(312);
plot(t,M(:,2),'r');
xlabel('time(s)');ylabel('M2');
subplot(313);
plot(t,M(:,3),'r');
xlabel('time(s)');ylabel('M3');

⌨️ 快捷键说明

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