正在加载图片...
主程序方法 主程序exn511a为: t=[0:.01:1.5] %设定自变量数组t w=4*sqrt(3); %固定频率 y=w/8*exp(-4*t).*sin(w*t+pi3);%用数组运算式 subplot(2,1,1),plot(t,y),grid %绘制曲线 title('绘图示例),xlabel('时间t),ylabel(y(t))%标注 Dy=diff(y);subplot(2,1,2), %求导数后,导数数组长度比原函数减少一。 plot(t(length(t)-1),Dy),grid 1%绘制导数曲线主程序方法 主程序exn511a为: t=[0:.01:1.5]; % 设定自变量数组t w= 4*sqrt(3); % 固定频率 y=w/8*exp(-4*t).*sin(w*t + pi/3);% 用数组运算式 subplot(2,1,1),plot(t,y), grid % 绘制曲线 title('绘图示例'),xlabel('时间 t'),ylabel('y(t)') % 标注 Dy=diff(y); subplot(2,1,2), % 求导数后,导数数组长度比原函数减少一。 plot(t(length(t)-1),Dy), grid % 绘制导数曲线
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有