网站大量收购独家精品文档,联系QQ:2885784924

MATLAB 第次上机实验报告.doc

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
MATLAB 第次上机实验报告

MATLAB 第五次上机实验报告 Quit 3.3 1题 %calculate x versus y1 and y2 x=0:pi/10:2*pi; y1=sin(x); y2=cos(2*x); %plot y1 and y2; plot(x,y1,-ro,LineWidth,2,MarkerSize,6,MarkerEdgeColor,b,MarkerFaceColor,b) hold on plot(x,y2,-ro,LineWidth,2,MarkerSize,6,MarkerEdgeColor,b,MarkerFaceColor,b) hold off legend(sinx,cosx) 2题 Write the MATLAB text string that will produce the following expressions 3题f(x) = sinθ cos2ф Answer: \it {f}(x)=sin\theta cos2\phi 4题4. Plot of Σx^2 versus x Answer: plot of \Sigmax^2 versus x Write the expression produced by the following text sting: 5题 ‘\tau\it_{m}’ Answer: 6题 \bf\itx_{1}^{ 2} + x_{2}^{ 2} \rm(units:\bfm^{2}\rm) Answer: 7题how do you display the backslash(\)character in a text string? Answer : \\ 3.8题 % theta -- Angle from microphone axis (radians) % g -- A function of angle %Calculat g versus angle theta=-pi/2:pi/20:pi/2; g=abs(sinc(4*theta)); %plot g polar(theta,g,b-); title(\bfAntenna Gain vs \theta) 3.11题 %define variables: % amp --Amplitude response % c --Capacitance(farads) % f --frequency of input signal (Hz) % phase --phase response % r --resistance(ohms) % res --v0/ui %Initialize r c r=16000; %16 k ohms c=1e-6; %1 uf f=1:2:1000; %calculate response res=(j*2*pi*f*r*c)./(1+j*2*pi*f*r*c); amp=abs(res); phase=angle(res); %create plots subplot(2,1,1); % Create plots subplot(2,1,1); loglog( f, amp ); title(Amplitude Response); xlabel(Frequency (Hz)); ylabel(Output/Input Ratio); grid on; subplot(2,1,2); semilogx( f, phase ); title(Phase Response); xlabel(Frequency (Hz)); ylabel(Output-Input Phase (rad)); grid on; 3.12题 %define variables: % r --the distance of a point from the origin %theta --the angle of one point in radians with respect to the origin % k --constant % calculate response k=0.5; theta=0:pi/20:6*pi; r=k*theta; %plot r polar(theta,r) title(\bfThe Spiral of Archimedes) 6.10题 %Define variable

文档评论(0)

exianwhan + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档