Danh mục

Lecture note Data visualization - Chapter 25

Số trang: 8      Loại file: pptx      Dung lượng: 67.36 KB      Lượt xem: 15      Lượt tải: 0    
tailieu_vip

Hỗ trợ phí lưu trữ khi tải xuống: 4,000 VND Tải xuống file đầy đủ (8 trang) 0
Xem trước 2 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

In this lecture we learned about: Function plots, three dimensional plotting, surface plotting, mesh plot, surf plot, contour plot, editing in plot in graphical window, making plot from workspace window.
Nội dung trích xuất từ tài liệu:
Lecture note Data visualization - Chapter 25Lecture25RecapFunctionPlotsThreeDimensionalPlottingSurfacePlottingMeshPlotSurfPlotContourPlotEditinginPlotinGraphicalWindowMakingPlotfromWorkspaceWindowSavingPlotsThereareseveralwaystosaveplotscreatedinMATLAB:Iftheplotarecreatedwithprogrammingcodestoredinan Mfile,simplyrerunningthecodewillrecreatethefigureThefigurecanalsobesavedfromthefilemenu,usingthe SaveAs...option.Severalchoiceswillbeopened: Thefigurecanbesavedasa.figfile,whichisaMATLAB specificfieformat.Toretrievethefigure,justdoubleclick onthefilenameinthecurrentfolder.Youcandothesame thingprogrammaticallywiththecodeopen Thefigurecanbesavedinanumberofdifferentstandard graphicsformats,suchasjpeg(.jpg)andenhancedSummaryofChapterThemostcommonlyusedgraphinengineeringisthex– yplotThistwodimensionalplotcanbeusedtographdataorto visualizemathematicalfunctionsNomatterwhatagraphrepresents,itshouldalways includeatitleandxandyaxislabelsAxislabelsshouldbedescriptiveandshouldinclude units,suchasft/sorkJ/kgMATLABincludesextensive optionsforcontrollingtheappearanceofyourplotsTheusercanspecifythecolor,linestyle,andmarkerstyle foreachlineonagraphContinued….Inadditiontox–yplots,MATLABoffersavarietyof plottingoptions,includingpolarplots,piecharts,bar graphs,histograms,andx–ygraphswithtwoy–axesThescalingonx–yplotscanbemodifiedtoproduce logarithmicplotsoneitherorbothx–andyaxesEngineersoftenuselogarithmicscalingtorepresentdata asastraightlineThefunctionfplotallowstheusertoplotafunction withoutdefiningavectorofxandy–valuesMATLABautomaticallychoosestheappropriatenumberContinued….ThethreedimensionalplottingoptionsinMATLAB includealineplot,anumberofsurfaceplots,andcontour plotsMostoftheoptionsavailableintwodimensionalplotting alsoapplytothesethreedimensionalplotsThemeshgridfunctionisespeciallyusefulincreating threedimensionalsurfaceplotsInteractivetoolsallowtheusertomodifyexistingplotsThesetoolsareavailablefromthefiguremenubarPlotscanalsobecreatedwiththeinteractiveplotting optionfromtheworkspacewindow Chapter6UserDefinedFunctionsIntroductionTheMATLABprogramminglanguageisbuiltaround functionsAfunctionisapieceofcomputercodethatacceptsan inputargumentfromtheuserandprovidesoutputtothe programFunctionsallowustoprogramefficiently,enablingusto avoidrewritingthecomputercodeforcalculationsthatare performedfrequentlyForexample:mostcomputerprogramscontaina functionthatcalculatesthesineofanumber

Tài liệu được xem nhiều: