close all;
T=40; %时间轴范围
subplot 311
plot(pos_deg.time,pos_deg.signals.values);
XLabel('时间(秒)');
YLabel('位置(度)');
AXIS([0,T,-5,50]);
grid on;
subplot 312
plot(vel_deg.time,vel_deg.signals.values);
XLabel('时间(秒)');
YLabel('速度(度/秒)');
AXIS([0,T,-1,3]);
grid on;
subplot 313
plot(err_deg.time,err_deg.signals.values);
XLabel('时间(秒)');
YLabel('误差(度)');
hold on
AXIS([0,T,-3,2]);
T=40; %时间轴范围
subplot 311
plot(pos_deg.time,pos_deg.signals.values);
XLabel('时间(秒)');
YLabel('位置(度)');
AXIS([0,T,-5,50]);
grid on;
subplot 312
plot(vel_deg.time,vel_deg.signals.values);
XLabel('时间(秒)');
YLabel('速度(度/秒)');
AXIS([0,T,-1,3]);
grid on;
subplot 313
plot(err_deg.time,err_deg.signals.values);
XLabel('时间(秒)');
YLabel('误差(度)');
hold on
AXIS([0,T,-3,2]);
grid on;
/*
内容:matlab从simulink导出到工作空间变量中作图
作者:罗世洲 QQ370756740 xyy0215@qq.com
欢迎技术交流
*/