標題:
matlab2012
[打印本頁]
作者:
xiaoou
時間:
2013-12-1 00:42
標題:
matlab2012
以前,使用的都是matlab 7.1,由于在PID控制方面顯得弱爆了,于是狠狠心耗盡了4.7個G在本本上裝了matlab2012a。 在7.1版本中,從simulink輸出數(shù)據(jù) to workspaces,給出的數(shù)組在命令窗口里可以直接load,用于畫圖。
但是2012版本中,輸出到workspaces的不只是數(shù)組啦而是timeseries,里面包涵你所需要的數(shù)據(jù)數(shù)組?梢酝ㄟ^t.name 來調用數(shù)組用來畫圖。
close all;
plot(t.Data,yd.Data,'-r',t.Data,y.Data,'--b','linewidth',2 );
xlabel('time(s)');ylabel('yd,y');
legend('Ideal position signal','Position tracking ')
對于一個新的東西,它肯定有比以前牛逼的地方,當然也會有我們不理解的東西,多多的看一下help是有幫助的
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1