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
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 25Lecture25RecapFunctionPlotsThreeDimensionalPlottingSurfacePlottingMeshPlotSurfPlotContourPlotEditinginPlotinGraphicalWindowMakingPlotfromWorkspaceWindowSavingPlotsThereareseveralwaystosaveplotscreatedinMATLAB:Iftheplotarecreatedwithprogrammingcodestoredinan Mfile,simplyrerunningthecodewillrecreatethefigureThefigurecanalsobesavedfromthefilemenu,usingthe SaveAs...option.Severalchoiceswillbeopened: Thefigurecanbesavedasa.figfile,whichisaMATLAB specificfieformat.Toretrievethefigure,justdoubleclick onthefilenameinthecurrentfolder.Youcandothesame thingprogrammaticallywiththecodeopen Thefigurecanbesavedinanumberofdifferentstandard graphicsformats,suchasjpeg(.jpg)andenhancedSummaryofChapterThemostcommonlyusedgraphinengineeringisthex– yplotThistwodimensionalplotcanbeusedtographdataorto visualizemathematicalfunctionsNomatterwhatagraphrepresents,itshouldalways includeatitleandxandyaxislabelsAxislabelsshouldbedescriptiveandshouldinclude units,suchasft/sorkJ/kgMATLABincludesextensive optionsforcontrollingtheappearanceofyourplotsTheusercanspecifythecolor,linestyle,andmarkerstyle foreachlineonagraphContinued….Inadditiontox–yplots,MATLABoffersavarietyof plottingoptions,includingpolarplots,piecharts,bar graphs,histograms,andx–ygraphswithtwoy–axesThescalingonx–yplotscanbemodifiedtoproduce logarithmicplotsoneitherorbothx–andyaxesEngineersoftenuselogarithmicscalingtorepresentdata asastraightlineThefunctionfplotallowstheusertoplotafunction withoutdefiningavectorofxandy–valuesMATLABautomaticallychoosestheappropriatenumberContinued….ThethreedimensionalplottingoptionsinMATLAB includealineplot,anumberofsurfaceplots,andcontour plotsMostoftheoptionsavailableintwodimensionalplotting alsoapplytothesethreedimensionalplotsThemeshgridfunctionisespeciallyusefulincreating threedimensionalsurfaceplotsInteractivetoolsallowtheusertomodifyexistingplotsThesetoolsareavailablefromthefiguremenubarPlotscanalsobecreatedwiththeinteractiveplotting optionfromtheworkspacewindow Chapter6UserDefinedFunctionsIntroductionTheMATLABprogramminglanguageisbuiltaround functionsAfunctionisapieceofcomputercodethatacceptsan inputargumentfromtheuserandprovidesoutputtothe programFunctionsallowustoprogramefficiently,enablingusto avoidrewritingthecomputercodeforcalculationsthatare performedfrequentlyForexample:mostcomputerprogramscontaina functionthatcalculatesthesineofanumber
Nội dung trích xuất từ tài liệu:
Lecture note Data visualization - Chapter 25Lecture25RecapFunctionPlotsThreeDimensionalPlottingSurfacePlottingMeshPlotSurfPlotContourPlotEditinginPlotinGraphicalWindowMakingPlotfromWorkspaceWindowSavingPlotsThereareseveralwaystosaveplotscreatedinMATLAB:Iftheplotarecreatedwithprogrammingcodestoredinan Mfile,simplyrerunningthecodewillrecreatethefigureThefigurecanalsobesavedfromthefilemenu,usingthe SaveAs...option.Severalchoiceswillbeopened: Thefigurecanbesavedasa.figfile,whichisaMATLAB specificfieformat.Toretrievethefigure,justdoubleclick onthefilenameinthecurrentfolder.Youcandothesame thingprogrammaticallywiththecodeopen Thefigurecanbesavedinanumberofdifferentstandard graphicsformats,suchasjpeg(.jpg)andenhancedSummaryofChapterThemostcommonlyusedgraphinengineeringisthex– yplotThistwodimensionalplotcanbeusedtographdataorto visualizemathematicalfunctionsNomatterwhatagraphrepresents,itshouldalways includeatitleandxandyaxislabelsAxislabelsshouldbedescriptiveandshouldinclude units,suchasft/sorkJ/kgMATLABincludesextensive optionsforcontrollingtheappearanceofyourplotsTheusercanspecifythecolor,linestyle,andmarkerstyle foreachlineonagraphContinued….Inadditiontox–yplots,MATLABoffersavarietyof plottingoptions,includingpolarplots,piecharts,bar graphs,histograms,andx–ygraphswithtwoy–axesThescalingonx–yplotscanbemodifiedtoproduce logarithmicplotsoneitherorbothx–andyaxesEngineersoftenuselogarithmicscalingtorepresentdata asastraightlineThefunctionfplotallowstheusertoplotafunction withoutdefiningavectorofxandy–valuesMATLABautomaticallychoosestheappropriatenumberContinued….ThethreedimensionalplottingoptionsinMATLAB includealineplot,anumberofsurfaceplots,andcontour plotsMostoftheoptionsavailableintwodimensionalplotting alsoapplytothesethreedimensionalplotsThemeshgridfunctionisespeciallyusefulincreating threedimensionalsurfaceplotsInteractivetoolsallowtheusertomodifyexistingplotsThesetoolsareavailablefromthefiguremenubarPlotscanalsobecreatedwiththeinteractiveplotting optionfromtheworkspacewindow Chapter6UserDefinedFunctionsIntroductionTheMATLABprogramminglanguageisbuiltaround functionsAfunctionisapieceofcomputercodethatacceptsan inputargumentfromtheuserandprovidesoutputtothe programFunctionsallowustoprogramefficiently,enablingusto avoidrewritingthecomputercodeforcalculationsthatare performedfrequentlyForexample:mostcomputerprogramscontaina functionthatcalculatesthesineofanumber
Tìm kiếm theo từ khóa liên quan:
Data visualization Lecture note Data visualization Data structures Data Visualization with C Data visualization with matlab Effective graphical displayTài liệu liên quan:
-
Trực quan hóa dữ liệu: Vai trò & thử thách
10 trang 37 0 0 -
Ebook Eloquent JavaScript - A modern introduction to programming: Part 1
199 trang 33 0 0 -
Ebook Management support systems: Part 2 - Dr. Kamlesh Lakhwani
136 trang 31 0 0 -
Lecture Introduction to computing systems (2/e): Chapter 19 - Yale N. Patt, Sanjay J. Patel
28 trang 30 0 0 -
Ebook Introduction to algorithms (3rd edition)
1313 trang 28 0 0 -
Lecture Data Structures: Lesson 38
71 trang 27 0 0 -
Lecture Data structures and algorithms: Chapter 1 - Introduction
41 trang 26 0 0 -
169 trang 24 0 0
-
Lecture note Data visualization - Chapter 22
21 trang 24 0 0 -
Lecture Data Structures: Lesson 41
18 trang 23 0 0