Octave (4.Plot Data)

>> t = [0:0.01:0.98]; >> y1 = sin(2*pi*4*t); >> plot(t,y1)    >> plot(t,y1) >> hold on; >> plot(t,y2,'r'); >> legend('sin','cos') >> xlabel('time') >> ylabel('value') >> title('my plot') >> cd 'E:\Mac
相關文章
相關標籤/搜索