东南大学Matlab作业2

东南大学Matlab作业2

ID:47316731

大小:4.26 MB

页数:39页

时间:2019-09-04

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

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

1、实用标准文档MatlabWorksheet2PartA(In-classroomexercises)1.Usingplottodisplaythefollowingvoltagewithappropriatelinetype,titleandlabels.Alsopresentthegraphwithsuitablerangesofaxis.wheref=50Hz.(Hint:timeintervalmustbesmallenough,e.g.0.001seconds.Therefore,t=0

2、:0.001:1isappropriate);Answer:Home_work_2_A_1.m%lbsin-class-exercise1_12013/8/21%functionUsingplottodisplaythefollowingvoltagewithappropriatelinetype,titleandlabels.Alsopresentthegraphwithsuitablerangesofaxis.%v(t)=220sin(2??ft)%wheref=50Hz.%Comment/

3、loopclearall;closeall;t=0:0.001:1;v=220*sin(2*pi*50*t);plot(t,v,'m','LineWidth',2)xlabel('t(sec)')ylabel('v(voltage)')title('v(t)=220sin(2??ft)')axis([00.2-260260]);gridon;文案大全实用标准文档1.Usingplottodisplaythefollowingvoltagewithappropriatelinetype,title

4、andlabels.Alsopresentthegraphwithsuitablerangesofaxis.wheref=50Hz.Inaddition,onthesamegraph,drawtheenvelopeoftheoscillationandaddlegends.Answer:home_work_2_A_2.m%lbsin-class-exercise1_22013/8/21%functionUsingplottodisplaythefollowingvoltagewithapprop

5、riatelinetype,titleandlabels.Alsopresentthegraphwithsuitablerangesofaxis.%v(t)=220exp(-5t)cos(2??ft)%wheref=50Hz.%Inaddition,onthesamegraph,drawtheenvelopeoftheoscillationandaddlegends.%Comment/loopclearall;closeall;t=0:0.001:1;v=220*exp(-5*t).*sin(2

6、*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('theoscillation','theenvelopeoftheos

7、cillation');axis([01-220220]);gridon;文案大全实用标准文档1.Usesubplot,drawa2by2arrayofplotsforthefollowingfunctions:Applyappropriatelinetype,title,labelsandaxisrangesforthegraphs.Answer:home_work_2_A_3.m%lbsin-class-exercise1_32013/8/21%functionUsesubplot,draw

8、a2by2arrayofplotsforthefollowingfunctions:%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(

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

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

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