资源描述:
《physical modeling in matlab》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、PhysicalModelinginMATLABRAllenB.DowneyVersion1.1.22RPhysicalModelinginMATLABCopyright2007,2008,2009AllenB.DowneyPermissionisgrantedtocopy,distributeand/ormodifythisdocumentunderthetermsoftheGNUFreeDocumentationLicense,Version1.1oranylaterversionpublishedbytheFreeSoftwareFoundation;thi
2、sbookcontainsnoInvariantSections,noFront-CoverTexts,andnoBack-CoverTexts.YoucanobtainacopyoftheGNUFreeDocumentationLicensefromwww.gnu.orgorbywritingtotheFreeSoftwareFoundation,Inc.,59TemplePlace-Suite330,Boston,MA02111-1307,USA.TheoriginalformofthisbookisLaTeXsourcecode.CompilingthisL
3、aTeXsourcehastheeffectofgeneratingadevice-independentrepresentationofabook,whichcanbeconvertedtootherformatsandprinted.Thisbookwastypesetbytheauthorusinglatex,dvipsandps2pdf,amongotherfree,open-sourceprograms.TheLaTeXsourceforthisbookisavailablefromhttp://greenteapress.com/matlab.RMATL
4、ABisaregisteredtrademarkofTheMathworks,Inc.TheMathworksdoesnotwarranttheaccuracyofthisbook;theyprobablydon’tevenlikeit.PrefaceMostbooksthatuseMATLABareaimedatreaderswhoknowhowtoprogram.Thisbookisforpeoplewhohaveneverprogrammedbefore.Asaresult,theorderofpresentationisunusual.Thebooksta
5、rtswithscalarvaluesandworksuptovectorsandmatricesverygradually.Thisapproachisgoodforbeginningprogrammers,becauseitishardtounderstandcompos-iteobjectsuntilyouunderstandbasicprogrammingsemantics.Butthereareproblems:•TheMATLABdocumentationiswrittenintermsofmatrices,andsoaretheerrormessag
6、es.Tomitigatethisproblem,thebookexplainstheneces-saryvocabularyearlyanddecipherssomeofthemessagesthatbeginnersfindconfusing.•ManyoftheexamplesinthefirsthalfofthebookarenotidiomaticMAT-LAB.Iaddressthisprobleminthesecondhalfbytranslatingtheexamplesintoamorestandardstyle.Thebookputsalotofe
7、mphasisonfunctions,inpartbecausetheyareanimportantmechanismforcontrollingprogramcomplexity,andalsobecausetheyareusefulforworkingwithMATLABtoolslikefzeroandode45.Iassumethatreadersknowcalculus,differentialequations,andphysics,butnotlinearalgebra.IexplainthemathasIgoalong,butthedescripti
8、onsmi