matlab中t=0~20pi,求t*sin(t)*cos(t)的波形

如题所述

t=linspace(1,20*pi,1000);
y=t.*sin(t).*cos(t);
plot(t,y);
grid on;

温馨提示:内容为网友见解,仅供参考
第1个回答  2015-09-16
t = linspace(0,20*pi,1000);%采样点数1000个
y = t.*sin(t).*cos(t);
figure,plot(t,y)
第2个回答  2015-09-16
>>clear
>>clc
>>t=[0::20*pi];
>>plot(t*sin(t)*cos(t),t)

求采纳本回答被网友采纳
相似回答