matlab应用外文翻译

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

IntroductiontoMATLABMATLAB(shortforMatrixLaboratory)isaspecial-purposecomputerprogramoptimizedtoperformengineeringandscientificcalculations.Itstartedlifehasaprogramdesignedtoperformmatrixmathematics,butovertheyearsithasgrownintoaflexiblecomputingsystemcapableofsolvingessentiallyanytechnicalproblem.TheMATLABprogramimplementstheMATLABprogramminglanguageandprovidesanextensivelibraryofpredefinedfunctionsthatmaketechnicalprogrammingtaskseasierandmoreefficient.ThisbookintroducestheMATLABlanguageandshowshowtouseittosolvetypicaltechnicalproblems.MATLABisahugeprogram,withanincrediblyrichvarietyoffunctions.EventhebasicversionofMATLABwithoutanytoolkitsismuchricherthanothertechnicalprogramminglanguages.Therearemorethan1000functionsinthebasicMATLABproductalone,andthetoolkitsextendthiscapabilitywithmanymorefunctionsinvariousspecialties.ThisbookmakesnoattempttointroducetheusertoallofMALTLAB′sowntoolstolocatethecorrectfunctionforaspecificpurposefromtheenormouschoiceavailable.AdvantagesofMATLABMATLABhasmanyadvantagescomparedwithconventionalcomputerlanguagesfortechnicalproblemsolving.Amongthemarethefollowing:1.EaseofUseMATLABisaninterpretedlanguage,likemanyversionsofBasic.LikeBasic,itisveryeasytouse.Theprogramcanbeusedasascratchpadtoevaluateexpressionstypedatthecommandline,oritcanbeusedtoexecutelargeprewrittenprograms.Programsmaybeeasilywrittenandmodifiedwiththebuilt-inintegrateddevelopmentenvironment,anddebuggedwiththeMATLABdebugger.Becausethelanguageissoeasytouse,itisidealforeducationaluse,andfortherapidprototypingofnewprograms.Manyprogramdevelopmenttoolsareprovidedtomaketheprogrameasytouse.aworkspacebrowser,andextensivedemos.2.PlatformindependenceMATLABissupportedonmanydifferentcomputersystems,providingalargemeasureofplatformindependence.Atthetimeofthiswriting,thelanguageissupportedonwindows9x/NT/2000andmanydifferentversionsofUNIX.Programswrittenonanyplatformwillrunonalloftheotherplatforms,anddatafileswrittenonanyplatformmaybereadtransparentlyonanyotherplatforms,ASaresult,ProgramswritteninMATLABcanmigratetonewplatformswhentheneedsoftheuserchange.3.PredefinedFunctionsMATLABcomescompletewithanextensivelibraryofpredefinedfunctionsthatprovidetestedandprepackagedsolutionstomanybasictechnicaltasks.Forexample,supposethatyouarewritingaprogramthatmustcalculatethestatisticsassociatedwithaninputdataset.Inmostlanguages,youwouldneedtowriteyourownsubroutinesorfunctionstoimplementcalculationssuchasthearithmeticmean,standarddeviation,median,andsoforth.TheseandhundredsofotherfunctionsarebuiltrightintotheMATLABlanguage,makingyourjobmucheasier.InadditiontothelargelibraryoffunctionsbuiltintothebasicMATLABlanguage,manyspecial-purposetoolboxesareavailabletohelpsolvecomplexproblemsinspecificareas.Forexample,ausercanbuystandardtoolboxestosolveproblemsinSignalProcessing,ControlSystems,Communications,ImageProcessing,andNeuralNetworks,amongmanyothers.Thereisalsoanextensivecollectionoffreeuser-contributedMATLABprogramsthataresharedthroughtheMATLABWebsite.4.Device-IndependentPlottingUnlikemostothercomputerlanguages,MATLABhasmanyintegralplottingandimagingcommands.TheplotsandimagescanbedisplayedonanygraphicaloutputdevicesupportedbythecomputeronwhichMATLABisrunning.ThiscapabilitymakesMATLABanoutstandingtoolforvisualizingtechnicaldata.5.GraphicalUserInterfaceMATLABincludestoolsthatallowaprogrammertointeractivelyconstructagraphicaluserinterface(GUI)forhisorherprogram.Withthiscapability,theprogrammercandesignsophisticateddataanalysisprogramsthatcanbeoperatedbyrelativelyinexperiencedusers.6.MATLABCompilerMATLAB′sflexibilityandplatformindependenceisachievedbycompilingMATLABprogramsintoadevice-independencep-code,andtheninterpretingthep-codeinstructionsatruntime.ThisapproachissimilartothatusedbyMicrosoftisVisualBasiclanguage.Unfortunately,theresultingprogramscansometimesexecuteslowlybecausetheMATLABcodeisinterpretedratherthancompiled.Wewillpointoutfeaturesthattendtoslowprogramexecutionwhenweencounterthem.AseparateMATLABcompilerisavailable.ThiscompilercancompileaMATLABprogramintoatrueexecutablethatrunsfasterthantheinterpretedcode.ItisagreatwaytoconvertaprototypeMATLABprogramintoanexecutablesuitableforsaleanddistributiontousers.DisadvantagesofMATLABMATLABhastwoprincipaldisadvantages.Thefirstisthatitisaninterpretedlanguage,andthereforecanexecutemoreslowlythancompiledlanguages.ThisproblemcanbemitigatedbyproperlystructuringtheMATLABprogramandbytheuseoftheMATLABcompilertocompilethefinalMATLABprogrambeforedistributionandgeneraluse.Theseconddisadvantageiscost:AfullcopyofMATLABis5to10timesmoreexpensivethanaconventionalCorFortrancompiler.Thisrelativelyhighcostismorethanoffsetbythereducedtimerequiredforanengineerorscientisttocreateaworkingprogram,soMATLABiscost-effectiveforbusinesses.However,itistooexpensiveformostindividualstoconsiderpurchasing.Fortunately,thereisalsoaninexpensiveStudentEditionofMATLAB,whichisagreattoolforstudentswantingtolearnthelanguage.TheStudentEditionofMATLABisessentiallyidenticaltothefulledition.Withtheintroductionofbranchesandloops,ourprogramsare

1 / 15
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功