实验一-MATLAB基本操作及运算(含实验报告)_第1页
实验一-MATLAB基本操作及运算(含实验报告)_第2页
实验一-MATLAB基本操作及运算(含实验报告)_第3页
实验一-MATLAB基本操作及运算(含实验报告)_第4页
实验一-MATLAB基本操作及运算(含实验报告)_第5页
已阅读5页,还剩18页未读 继续免费阅读

下载本文档

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

文档简介

实验一MATLAB基本操作及运算实验目的理解Matlab数据对象的特点;掌握基本Matlab运算规则;掌握Matlab帮助的使用方法;实验的设备及条件计算机一台(带有MATLAB7.0以上的软件环境)。实验内容要求建立一个名为experiment01.m的,把与实验内容1-7相关的实验命令都放入该文件中,题与题之间用相应注释分割。注意对实验中出现的相关函数或变量,请使用help或doc查询相关帮助文档,学习函数的用法。建立以下标量:a=10b=2.5×1023c=2+3i,(i为虚数单位)d=,(j为虚数单位,这里要用到exp,pi)建立以下向量:aVec=[3.1415926]bVec=cVec=[54.8…-4.8-5](向量中的数值从5到-5,步长为-0.2)dVec=[100100.01…100.99101](产生1到10之间的等对数间隔向量,参考logspace,注意向量的长度)建立以下矩阵:1)aMat一个9×9的矩阵,其元素全为2;(参考ones或zeros)2)bMat是一个9×9的矩阵,除主对角上的元素为[123454321]外,其余元素均为0。(参考diag)。3)cMat为一个10×10的矩阵,可有1:100的向量来产生(参考reshape)4)dMat为3×4的NaN矩阵,(参考nan)5)6)产生一个5×3随机整数矩阵fMat,其值的范围在-3到3之间。(参考rand和floor或ceil)使用题1中的变量计算下列等式的x,y,z的值:,参考sqrt。,其中R表示取括号内复数的实数部分,表示c的共轭复数,log是自然对数。(参考real,conj,log)使用题2中的向量求解一下等式:1),其中指的是题2中定义的向量,一下雷同。2),表示的转置3),表示已10为底的对数,参考log10使用题2和题3中所产生的向量和矩阵计算以下等式,注意本题的操作实验结果及结果分析第一大题A=10b=2.5e+023c=2+3id=-0.5+0.866025403784439i_____________________________________________________________________第二大题aVec=Columns1through23.1415Columns3through4926bVec=2.71828182cVec=Columns1through254.8Columns3through44.64.4Columns5through64.24Columns7through83.83.6Columns9through103.43.2Columns11through1232.8Columns13through142.62.4Columns15through162.22Columns17through181.81.6Columns19through201.41.2Columns21through2210.8Columns23through240.60.399999999999999Columns25through260.1999999999999990Columns27through28-0.199999999999999-0.399999999999999Columns29through30-0.6-0.8Columns31through32-1-1.2Columns33through34-1.4-1.6Columns35through36-1.8-2Columns37through38-2.2-2.4Columns39through40-2.6-2.8Columns41through42-3-3.2Columns43through44-3.4-3.6Columns45through46-3.8-4Columns47through48-4.2-4.4Columns49through50-4.6-4.8Column51-5dVec=Columns1through211.02353102189903Columns3through41.047615752789661.07226722201032Columns5through61.097498765493061.12332403297803Columns7through81.149756995397741.176811952435Columns9through101.204503540258781.23284673944207Columns11through121.261856883066021.29154966501488Columns13through141.321941148466031.35304777457981Columns15through161.384886371393871.41747416292681Columns17through181.450828778495941.48496826225447Columns19through201.519911082952931.55567614393047Columns21through221.592282793341091.62975083462064Columns23through241.668100537200061.70735264747069Columns25through261.747528400007681.78864952905743Columns27through281.830738280295371.87381742286038Columns29through301.917910261672491.96304065004027Columns31through322.009233002565052.05651230834865Columns33through342.104904144512022.15443469003188Columns35through362.205130739903052.25701971963392Columns37through382.310129700083162.36448941264541Columns39through402.420128264794382.47707635599171Columns41through422.535364493970112.59502421139974Columns43through442.656087782946692.71858824273294Columns45through462.782559402207122.8480358684358Columns47through482.915053062825182.98364724028334Columns49through503.053855508833423.12571584968824Columns51through523.199267137797383.27454916287773Columns53through543.351602650938843.43046928631492Columns55through563.511191734215133.59381366380463Columns57through583.678379771828633.76493580679247Columns59through603.853528593710533.94420605943766Columns61through624.037017258596554.13201240011534Columns63through644.22924287438954.32876128108306Columns65through664.430621457583884.53487850812858Columns67through684.641588833612784.7508101621028Columns69through704.862601580065354.97702356433211Columns71through725.094138014816385.21400828799968Columns73through745.336699231206315.46227721768434Columns75through765.590810182512225.72236765935022Columns77through785.857020818056675.99484250318941Columns79through806.135907273413176.28029144183425Columns81through826.428073117284326.57933224657568Columns83through846.734150657750826.8926121043497Columns85through867.054802310718647.22080901838546Columns87through887.390722033525787.56463327554629Columns89through907.742636826811277.92482898353917Columns91through928.111308307896878.30217568131975Columns93through948.497534359086448.69749002617784Columns95through968.902150854450399.11162756115489Columns97through989.32603346883229.54548456661834Columns99through1009.7700995729922510_____________________________________________________________________第三大题aMat=222222222222222222222222222222222222222222222222222222222222222222222222222222222bMat=100000000020000000003000000000400000000050000000004000000000300000000020000000001x=Columns1through9123456789Columns10through18101112131415161718Columns19through27192021222324252627Columns28through36282930313233343536Columns37through45373839404142434445Columns46through54464748495051525354Columns55through63555657585960616263Columns64through72646566676869707172Columns73through81737475767778798081Columns82through90828384858687888990Columns91through99919293949596979899Column100100cMat=Columns1through9111213141516171812122232425262728231323334353637383414243444546474845152535455565758561626364656667686717273747576777878182838485868788891929394959697989102030405060708090Column10919293949596979899100dMat=NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNeMat=13-15-2210-87fMat=Columns1through24.650904996030234.23909276304231-0.3820304049799853.334677831191762.247898084792511.195273656178391.4018772809651-1.87047449726243Column33.749850150066771.112923550472362.308026436700663.54355926198925_____________________________________________________________________第四大题x=0.302940716034593y=6269.60314420271z=0.104633566196183_____________________________________________________________________第五大题xVec=Columns1through20.00114368374603410.00168440923977891Columns3through40.002441891459895720.00348451366324844Columns5through60.0048943504446680.00676682628990691Columns7through80.009208991418613310.0123360517753163Columns9through100.01626587286601450.0211113321391906Columns11through120.0269706229865210.033915903649967Columns13through140.04198100994748930.0511492707968797Columns15through160.0613427280038810.0724142104534477Columns17through180.08414369683445320.096240185732909Columns19through200.108349869123440.120070800079053Columns21through220.1309735179491810.14062633423639Columns23through240.1486232979237350.154612359137343Columns25through260.1583210256067890.159576912160573Columns27through280.1583210256067890.154612359137343Columns29through300.1486232979237350.14062633423639Columns31through320.1309735179491810.120070800079053Columns33through340.108349869123440.096240185732909Columns35through360.08414369683445320.0724142104534477Columns37through380.0613427280038810.0511492707968797Columns39through400.04198100994748930.033915903649967Columns41through420.0269706229865210.0211113321391906Columns43through440.01626587286601450.0123360517753163Columns45through460.009208991418613310.00676682628990691Columns47through480.0048943504446680.00348451366324844Columns49through500.002441891459895720.00168440923977891Column510.0011436837460341yVec1=3.5034126220015813.285330255586428.7141080307225182.926214633114zVec=Columns1through20-0.0101010101010101Columns3through4-0.0202020202020202-0.0303030303030304Columns5through6-0.0404040404040404-0.0505050505050505Columns7through8-0.0606060606060606-0.0707070707070707Columns9through10-0.0808080808080809-0.0909090909090909Columns11through12-0.101010101010101-0.111111111111111Columns13through14-0.121212121212121-0.131313131313131Columns15through16-0.141414141414141-0.151515151515152Columns17through18-0.161616161616162-0.171717171717172Columns19through20-0.181818181818182-0.191919191919192Columns21through22-0.202020202020202-0.212121212121212Columns23through24-0.222222222222222-0.232323232323232Columns25through26-0.242424242424242-0.252525252525253Columns27through28-0.262626262626263-0.272727272727273Columns29through30-0.282828282828283-0.292929292929293Columns31through32-0.303030303030303-0.313131313131313Columns33through34-0.323232323232323-0.333333333333333Columns35through36-0.343434343434343-0.353535353535354Columns37through38-0.363636363636364-0.373737373737374Columns39through40-0.383838383838384-0.393939393939394Columns41through42-0.404040404040404-0.414141414141414Columns43through44-0.424242424242424-0.434343434343434Columns45through46-0.444444444444444-0.454545454545455Columns47through48-0.464646464646465-0.474747474747475Columns49through50-0.484848484848485-0.494949494949495Columns51through52-0.505050505050505-0.515151515151515Columns53through54-0.525252525252525-0.535353535353535Columns55through56-0.545454545454545-0.555555555555556Columns57through58-0.565656565656566-0.575757575757576Columns59through60-0.585858585858586-0.595959595959596Columns61through62-0.606060606060606-0.616161616161616Columns63through64-0.626262626262626-0.636363636363636Columns65through66-0.646464646464647-0.656565656565657Columns67through68-0.666666666666667-0.676767676767677Columns69through70-0.686868686868687-0.696969696969697Columns71through72-0.707070707070707-0.717171717171717Columns73through74-0.727272727272727-0.737373737373737Columns75through76-0.747474747474747-0.757575757575758Columns77through78-0.767676767676768-0.777777777777778Columns79through80-0.787878787878788-0.797979797979798Columns81through82-0.808080808080808-0.818181818181818Columns83through84-0.828282828282828-0.838383838383838Columns85through86-0.848484848484848-0.858585858585859Columns87through88-0.868686868686869-0.878787878787879Columns89through90-0.888888888888889-0.898989898989899Columns91through92-0.909090909090909-0.919191919191919Columns93through94-0.929292929292929-0.939393939393939Columns95through96-0.94949494949495-0.95959595959596Columns97through98-0.96969696969697-0.97979797979798Columns99through100-0.98989898989899-1xMat=Columns1through220450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.0376Columns3through420450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.0376Columns5through620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.0376Columns7through820450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.0376Column920450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.037620450.0376yMat

温馨提示

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

评论

0/150

提交评论