MATLAB_Simulink实用教程:编程、仿真及电子信息学科应用(第2版)习题答案 第6章 .docx

MATLAB_Simulink实用教程:编程、仿真及电子信息学科应用(第2版)习题答案 第6章 .docx

习题6参考答案

1.下面代码存为exer_6_1.m脚本文件

clear;

x=0:0.1:2*pi;

y=2*sin(x);

plot(x,y)

2.下面代码存为exer_6_2.m脚本文件

clear

t=[0:0.1:2*pi];

y=sin(t)+cos(t);

plot(t,y,r-.d)

xlabel(t)

ylabel(y)

title(sin(t)+cos(t))

3.下面代码存为exer_6_3.m脚本文件

clear

t=[0:0.1:2*pi];

y1=t.*sin(2*pi*t);

y2=5*exp(-t).*cos(2*pi*t);

plot(t,y1,

文档评论(0)

1亿VIP精品文档

相关文档