matlab繪制正弦余弦圖像 用MATLAB求解在圖形窗口繪制正弦和余弦曲線?
用MATLAB求解在圖形窗口繪制正弦和余弦曲線?T=0:0.02:2*PIY=[sin(T)cos(T)]plot(T,y)legend(“sine curve”,“cosine curve”)tex
用MATLAB求解在圖形窗口繪制正弦和余弦曲線?
T=0:0.02:2*PIY=[sin(T)cos(T)]plot(T,y)legend(“sine curve”,“cosine curve”)text(PI,0,“sin(T)”)text(PI/2,0,“cos(T)”)title(“sine and cosine curve”)xlabel(“time T”)ylabel(“sine and cosine curve”)grid on