资源描述:
《Downey A.B. Physical Modeling in MATLAB (v.1.1.3)(en)(155s)》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、PhysicalModelinginMATLABAllenB.DowneyVersion1.1.32PhysicalModelinginMATLABCopyright2007,2008,2009,2010AllenB.DowneyPermissionisgrantedtocopy,distributeand/ormodifythisdocumentunderthetermsoftheGNUFreeDocumentationLicense,Version1.1oranylaterversionpublish
2、edbytheFreeSoftwareFoundation;thisbookcontainsnoInvariantSections,noFront-CoverTexts,andnoBack-CoverTexts.YoucanobtainacopyoftheGNUFreeDocumentationLicensefromwww.gnu.orgorbywritingtotheFreeSoftwareFoundation,Inc.,59TemplePlace-Suite330,Boston,MA02111-130
3、7,USA.TheoriginalformofthisbookisLaTeXsourcecode.CompilingthisLaTeXsourcehastheeffectofgeneratingadevice-independentrepresentationofabook,whichcanbeconvertedtootherformatsandprinted.Thisbookwastypesetbytheauthorusinglatex,dvipsandps2pdf,amongotherfree,open
4、-sourceprograms.TheLaTeXsourceforthisbookisavailablefromhttp://greenteapress.com/matlab.MATLABisaregisteredtrademarkofTheMathworks,Inc.TheMathworksdoesnotwarranttheaccuracyofthisbook;theyprobablydon’tevenlikeit.Chapter1PrefaceMostbooksthatuseMATLABareaime
5、datreaderswhoknowhowtoprogram.Thisbookisforpeoplewhohaveneverprogrammedbefore.Asaresult,theorderofpresentationisunusual.Thebookstartswithscalarvaluesandworksuptovectorsandmatricesverygradually.Thisapproachisgoodforbeginningprogrammers,becauseitishardtound
6、erstandcompos-iteobjectsuntilyouunderstandbasicprogrammingsemantics.Butthereareproblems:TheMATLABdocumentationiswrittenintermsofmatrices,andsoaretheerrormessages.Tomitigatethisproblem,thebookexplainstheneces-saryvocabularyearlyanddecipherssomeofthemessage
7、sthatbeginnersfindconfusing.ManyoftheexamplesinthefirsthalfofthebookarenotidiomaticMAT-LAB.Iaddressthisprobleminthesecondhalfbytranslatingtheexamplesintoamorestandardstyle.Thebookputsalotofemphasisonfunctions,inpartbecausetheyareanimportantmechanismforcontr
8、ollingprogramcomplexity,andalsobecausetheyareusefulforworkingwithMATLABtoolslikefzeroandode45.Iassumethatreadersknowcalculus,differentialequations,andphysics,butnotlinearalgebra.IexplainthemathasIgoalong,butthedescri