东南大学mALAB作业2资料

东南大学mALAB作业2资料

ID:33329530

大小:4.90 MB

页数:38页

时间:2019-02-24

东南大学mALAB作业2资料_第1页
东南大学mALAB作业2资料_第2页
东南大学mALAB作业2资料_第3页
东南大学mALAB作业2资料_第4页
东南大学mALAB作业2资料_第5页
资源描述:

《东南大学mALAB作业2资料》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、MatlabWorksheet2PartA(In-classroomexercises)1.Usingplottodisplaythefollowingvoltagewithappropriatelinetype,titleandlabels.Alsopresentthegraphwithsuitablerangesofaxis.wheref=50Hz.(Hint:timeintervalmustbesmallenough,e.g.0.001seconds.Therefore,t=0:0.001:1isappropriate);Answer:Home_work_2_A_1.m%

2、lbsin-class-exercise1_12013/8/21%functionUsingplottodisplaythefollowingvoltagewithappropriatelinetype,titleandlabels.Alsopresentthegraphwithsuitablerangesofaxis.%v(t)=220sin(2??ft)%wheref=50Hz.%Comment/loopclearall;closeall;t=0:0.001:1;v=220*sin(2*pi*50*t);plot(t,v,'m','LineWidth',2)xlabel('

3、t(sec)')ylabel('v(voltage)')title('v(t)=220sin(2??ft)')axis([00.2-260260]);gridon;1.Usingplottodisplaythefollowingvoltagewithappropriatelinetype,titleandlabels.Alsopresentthegraphwithsuitablerangesofaxis.wheref=50Hz.Inaddition,onthesamegraph,drawtheenvelopeoftheoscillationandaddlegends.Answe

4、r:home_work_2_A_2.m%lbsin-class-exercise1_22013/8/21%functionUsingplottodisplaythefollowingvoltagewithappropriatelinetype,titleandlabels.Alsopresentthegraphwithsuitablerangesofaxis.%v(t)=220exp(-5t)cos(2??ft)%wheref=50Hz.%Inaddition,onthesamegraph,drawtheenvelopeoftheoscillationandaddlegends

5、.%Comment/loopclearall;closeall;t=0:0.001:1;v=220*exp(-5*t).*sin(2*pi*50*t);plot(t,v,'m','LineWidth',2);xlabel('t(sec)')ylabel('v(voltage)')title('v(t)=220exp(-5t)cos(2??ft)')holdon;v1=220*exp(-5*t);plot(t,v1,'b','LineWidth',2);holdon;plot(t,-v1,'b','LineWidth',2);holdoff;legend('theoscillat

6、ion','theenvelopeoftheoscillation');axis([01-220220]);gridon;1.Usesubplot,drawa2by2arrayofplotsforthefollowingfunctions:Applyappropriatelinetype,title,labelsandaxisrangesforthegraphs.Answer:home_work_2_A_3.m%lbsin-class-exercise1_32013/8/21%functionUsesubplot,drawa2by2arrayofplotsforthefollo

7、wingfunctions:%v1=cos(10*pi*t);v2=exp(-5*t).*v1;v3=exp(-10*t).*v1;v4=exp(-20*t).*cos(10*pi*t)%Applyappropriatelinetype,title,labelsandaxisrangesforthegraphs.%Comment/loopt=0:0.001:1;v1=cos(10*pi*t);v2=exp(-5*t).*v1;v3=exp(-10*t).*v1;v4=exp(-20*t).*

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。