如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
ENGG952EngineeringComputingTutorialQuestions(Week1)1.CreateanewM-filethatplotsthefunctiony(x)=2e-0.5xfor0≤x≤10.clearx=0:0.1:10;y=2*exp(-0.5*x);plot(x,y)SavethefileasPlotExp.mandexecutethefilefromthecommandwindow.2.Describetheuseofthecommandwindow,theeditor,theworkspace,andthecommandhistorywindow.3.ExploreMATLABandlistatleast20built-infunctionsthatyoucanfind,alsodemonstratehowtheyareused.1.12.14.23.51.24.74.AssumeA=2.04.35.4B=3.02.33.4,evaluatethefollowingoperations1.52.53.72.54.85.7withA+B=____________________________________________A*B=____________________________________________A.*B=___________________________________________A\B=____________________________________________A/B=_____________________________________________B\A=____________________________________________5.CreateanarrayinMATLAB,saytimet,whichcontainstheelementst=0,0.2,0.4,0.6,…,10,wheretrepresentstime.Calculateexp(-sint)andplotitwitharedsolidlineusingtheplotcommand.Usetheholdoncommandtoretainthisplotandaddaplotoffunctionexp(-cost)usingblue‘+’signs.Labelthexaxiswith‘t(sec)’,theyaxisas‘Amplitude’,andthetitleas‘Response’.Includeagridovertheplotarea.Addlegendandplacesomecommentontheplotifnecessary.Tryshowingtheuseoftheplotrelatedcommandsasmuchaspossiblee.g.plot,xlabel,ylabel,title,legend,text,gtextandgrid.HTZhuENGG952-201316.Thedeflectionofthesimplysupportedbeamshownbelowisgivenbythefollowingequations−wxy=(16x3−24Lx2+9L3)for0≤x≤L/2384EI−wxy=(8x3−24Lx2+17L2x−L3)forL/2≤x≤L384EICreateanM-filethatplotthedeflectionofthebeamyasafunctionofx.Theprogramshouldaskusertoinput:L(lengthofthebeaminm)E(Young’smodulusofelasticityofthebeaminPa)I(momentofinertiaofthebeaminm4)w(thedistributedloadinN/m)Executetheprogramwiththefollowinginputs:L=20mE=200x109PaI=348x10-6m4w=5x103N/m7.TheTablebelowistheweathertabledataforJune2010.CreateanM-filethatreadsthedatafromexcelfile,plotstheMaxwindgust,Temp@9amand@3pmwithdate,andfindthemea