ENGG952-TUTORIAL QUESTIONS-WEEK1.pdf
上传人:sy****28 上传时间:2024-09-11 格式:PDF 页数:3 大小:154KB 金币:16 举报 版权申诉
预览加载中,请您耐心等待几秒...

ENGG952-TUTORIAL QUESTIONS-WEEK1.pdf

ENGG952-TUTORIALQUESTIONS-WEEK1.pdf

预览

在线预览结束,喜欢就下载吧,查找使用更方便

16 金币

下载此文档

如果您无法下载资料,请参考说明:

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.23.51.24.74.AssumeA=2.04.35.4B=3.02.33.4,evaluatethefollowingoperations1.52.53.72.54.85.7withA+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