MATLAB实验报告实验6.doc_第1页
MATLAB实验报告实验6.doc_第2页
MATLAB实验报告实验6.doc_第3页
MATLAB实验报告实验6.doc_第4页
MATLAB实验报告实验6.doc_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

10*2011 11 28 23456812131417 20 22 24 25 273?x?2cost?3?y?2sint?1t?0,2?theta=-pi0.01pi x=2*cos(theta).3 xy=2*sin(theta).3 yplot(x,y,b-) x-yb- x?2?0.5x2?x?62f(x)?1.5?0.25x?0.5x?6?x09y0,1.5f(x)xy x=0:0.1:9;y=(0.5*x).*(x>=0&x<=2)+(1.5-0.25*x).*(x>2&x<=6)+(0.5).*(x>6&x<=9); %yxplot(x,y,-red) %xyaxis(0, 9, 0, 1.5) %xytext(2,1,(2,1); %title(); %xlabel(x); %xylabel(y); %ylegend(y)xyxy?3 f(t)? ?f1(?)*f2(t?)d?matlabmatlab matlab?3 matlab ?12 matlab ?17 matlab ?23 matlab ?31 matlab-gui ?35 matlab ?56 matlab ?62 matlab1. matlab2. matlab3. matlab4. 5. matlab6. matlab7. 1. cd,clear,dir,path,help,who,whos,save,loadcd clear matlabdir ()path help who matlabwhos matlabsave matworkspacematmatlabload workspacemat 2. mybinmydata3. 12?2*(7?4)?32matlabx=(12+2*(7-4)/32x = 24. matlabo 2sin85z?2 1?e1z2?12ln(x?21?2i?2?x),x?0.455?matlab>> z1=2*sin(85*pi/180)/(1+exp(2)z1 = 0.2375>> x=2,1+2i;-0.45,5;z2=log(x+sqrt(1+x2)/2z2 =0.7114 - 0.0253i 0.8968 + 0.3658i0.2139 + 0.9343i 1.1541 - 0.0044i5.matlabinvplotmaxround >> help invinv matrix inverse.inv(x) is the inverse of the square matrix x.a warning message is printed if x is badly scaled ornearly singular.>> help plotplot linear plot.plot(x,y) plots vector y versus vector x. if x or y is a matrix, then the vector is plotted versus the rows or columns of the matrix, whichever line up. if x is a scalar and y is a vector, disconnected line objects are created and plotted as discrete points vertically atx.plot(y) plots the columns of y versus their index.various line types, plot symbols and colors may be obtained with plot(x,y,s) where s is a character string made from one element from any or all the following 3 columns:b blue . point - solid g green o circle : dotted r red x x-mark -. dashdot c cyan + plus - dashed m magenta * star (none) no line y yellow s squarek black d diamondw white v triangle (down) triangle (up)< triangle (left)> triangle (right)p pentagramh hexagramfor example, plot(x,y,c+:) plots a cyan dotted line with a plus at each data point; plot(x,y,bd) plots blue diamond at each data point but does not draw any line.for example, plot(x,y,y-,x,y,go) plots the data twice, with a solid yellow line interpolating green circles at the data points.through the first six colors in the table. for monochrome systems, plot cycles over the axes linestyleorder property.if you do not specify a marker type, plot uses no marker.if you do not specify a line style, plot uses a solid line.plot(ax,.) plots into the axes with handle ax.matlab 1002100405102 20121221 matlab1matlab21. matlabmatlab2. matlab3. matlab 1 2 3 31 4 matlabmatlabmatlab2 matlab3 matlab4 matlab5 matlab4. matlab6 5. matlab6. matlab8 9 12matlab6.5matlab 34helphelp eyeeye6m-fileexerc1exerc2exerc3?matlabm-filea2 clcclearclc clear3 c=1:2:20cii=1,2,3,?,10c=1:2:201202c135?1719cimatlab 2_ 1001 matlab 2011 3 9_ _ 1001 100610106 1.2.3.4. matlab matlab matlab matlab 6.5 1. matlab1z1=1?2i?22sin8512?x2z=ln(x+) , x=?0.45? 251?e22?e0.3a?e?0.3a0.3?a(3)z3=sin(a+0.3)+ln ,a=-3.0,-2.9,-2.8,2.8,2.9,3.022(a)?t20?t?1?4z4= ?t2?11?t?2?t2?2t?12?t?3?)2. ,t=0:0.5:2.5(?1234?4?13?1? 3 a=34787 b=20?3657?3?27?1 a+6*ba-b+i(i)2 a*ba.*b3 a3a.34 a/bba5

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论