Lecture note Data visualization - Chapter 32
Số trang: 24
Loại file: pptx
Dung lượng: 284.44 KB
Lượt xem: 12
Lượt tải: 0
Xem trước 3 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
This chapter presents the following content: Matlab environment, built-in matlab functions, plotting, user-defined functions, numerical techniques, matlab environment, numerical techniques,...
Nội dung trích xuất từ tài liệu:
Lecture note Data visualization - Chapter 32Lecture32Chapter4InheritanceInheritanceisapowerfulfeaturethatallowsthereuseof code.However,besurethatfunctionsappliedtoobjectscreated atruntimethroughthenewoperatorareboundatrun time.Thisfeatureisknownasdynamicbinding,andthe useofvirtualfunctionsisrequiredtoensurethatruntime decisionsaremade.Rereadthischapterasoftenasnecessarytoensurethat youunderstandthedistinctionsamong nonvirtualfunctionsChapter6“AlgorithmAnalysisInthischapterweintroducedalgorithmanalysisand showedthatalgorithmicdecisionsgenerallyinfluencethe runningtimeofaprogrammuchmorethanprogramming tricksdoWealsoshowedthehugedifferencebetweentherunning timesforquadraticandlinearprogramsandillustratedthat cubicalgorithmsare,forthemostpart,unsatisfactoryWeexaminedanalgorithmthatcouldbeviewedasthe basisforourfirstdatastructureThebinarysearchefficientlysupportsstaticoperations therebyprovidingalogarithmicworstcasesearchDataVisualizationwithMATLABChapter2“MATLABEnvironment”Chapter3“BuiltinMATLABFunctions”Chapter5“Plotting”Chapter6“UserDefinedFunctions”Chapter13“NumericalTechniques”Chapter2MATLABEnvironmentInthischapter,weintroducedthebasicMATLAB structureTheMATLABenvironmentincludesmultiplewindows, fourofwhichareopeninthedefaultview: Commandwindow Commandhistorywindow Workspacewindow CurrentfolderwindowInaddition,theContinued….VariablesdefinedinMATLABfollowcommoncomputer namingconventions: Namesmuststartwithaletter. Letters,numbers,andtheunderscorearetheonlycharacters allowed. Namesarecasesensitive. Namesmaybeofanylength,althoughonlythefirst63 charactersareusedbyMATLAB SomekeywordsarereservedbyMATLABandcannotbe usedasvariablenames MATLABallowstheusertoreassignfunctionnamesasContinued….Matricesoftenstorenumericinformation,althoughthey canstoreotherkindsofinformationaswellDatacanbeenteredintoamatrixmanuallyorcanbe retrievedfromstoreddatafilesWhenenteredmanually,amatrixisenclosedinsquare brackets,elementsinarowareseparatedbyeither commasorspaces,andanewrowisindicatedbya semicolon: a=[1234;5678]EvenlyspacedmatricescanbegeneratedwiththecolonContinued….MATLABfollowsthestandardalgebraicorderof operationsMATLABsupportsbothstandard(decimal)andscientific notationItalsosupportsanumberofdifferentdisplayoptions.No matterhowvaluesaredisplayed,theyarestoredas doubleprecisionfloatingpointnumbersMATLABvariablescanbesavedorimportedfrom either.MATor.DATfilesThe.MATformatisproprietarytoMATLABandisused becauseitstoresdatamoreefficientlythanotherfileChapter3“BuiltinMATLAB FunctionsGeneralmathematicalfunctions,suchas exponentialfunctions logarithmicfunctions rootsRoundingfunctionsFunctionsusedindiscretemathematics,suchas factoringfunctions primenumberfunctionsTrigonometricfunctions,includingContinued….Dataanalysisfunctions,suchas maximaandminima averages(meanandmedian) sumsandproducts sorting standarddeviationandvarianceRandomnumbergenerationforboth uniformdistributions Gaussian(normal)distributionsChapter5“PlottingThemostcommonlyusedgraphinengineeringisthex– 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 optionfromtheworkspacewindowChapter6“UserDefinedFunctionsMATLABcontainsawidevarietyofbuiltinfunctionsHowever,youwilloftenfinditusefultocreateyourown MATLABfunctionsThemostcommontypeofuserdefinedMATLAB functionisthefunctionMfile,whichmuststartwitha functiondefinitionlinethatcontains thewordfunction avariablethatdefinesthefunctionoutput afunctionname avariableusedfortheinputargumentContinued….ThefunctionnamemustalsobethenameoftheMfilein whichthefunctionisstoredFunctionnamesfollowthestandardMATLABnaming rulesLikethebuiltinfunctions,userdefinedfunctionscan acceptmultipleinputsandcanreturnmultipleresultsCommentsim ...
Nội dung trích xuất từ tài liệu:
Lecture note Data visualization - Chapter 32Lecture32Chapter4InheritanceInheritanceisapowerfulfeaturethatallowsthereuseof code.However,besurethatfunctionsappliedtoobjectscreated atruntimethroughthenewoperatorareboundatrun time.Thisfeatureisknownasdynamicbinding,andthe useofvirtualfunctionsisrequiredtoensurethatruntime decisionsaremade.Rereadthischapterasoftenasnecessarytoensurethat youunderstandthedistinctionsamong nonvirtualfunctionsChapter6“AlgorithmAnalysisInthischapterweintroducedalgorithmanalysisand showedthatalgorithmicdecisionsgenerallyinfluencethe runningtimeofaprogrammuchmorethanprogramming tricksdoWealsoshowedthehugedifferencebetweentherunning timesforquadraticandlinearprogramsandillustratedthat cubicalgorithmsare,forthemostpart,unsatisfactoryWeexaminedanalgorithmthatcouldbeviewedasthe basisforourfirstdatastructureThebinarysearchefficientlysupportsstaticoperations therebyprovidingalogarithmicworstcasesearchDataVisualizationwithMATLABChapter2“MATLABEnvironment”Chapter3“BuiltinMATLABFunctions”Chapter5“Plotting”Chapter6“UserDefinedFunctions”Chapter13“NumericalTechniques”Chapter2MATLABEnvironmentInthischapter,weintroducedthebasicMATLAB structureTheMATLABenvironmentincludesmultiplewindows, fourofwhichareopeninthedefaultview: Commandwindow Commandhistorywindow Workspacewindow CurrentfolderwindowInaddition,theContinued….VariablesdefinedinMATLABfollowcommoncomputer namingconventions: Namesmuststartwithaletter. Letters,numbers,andtheunderscorearetheonlycharacters allowed. Namesarecasesensitive. Namesmaybeofanylength,althoughonlythefirst63 charactersareusedbyMATLAB SomekeywordsarereservedbyMATLABandcannotbe usedasvariablenames MATLABallowstheusertoreassignfunctionnamesasContinued….Matricesoftenstorenumericinformation,althoughthey canstoreotherkindsofinformationaswellDatacanbeenteredintoamatrixmanuallyorcanbe retrievedfromstoreddatafilesWhenenteredmanually,amatrixisenclosedinsquare brackets,elementsinarowareseparatedbyeither commasorspaces,andanewrowisindicatedbya semicolon: a=[1234;5678]EvenlyspacedmatricescanbegeneratedwiththecolonContinued….MATLABfollowsthestandardalgebraicorderof operationsMATLABsupportsbothstandard(decimal)andscientific notationItalsosupportsanumberofdifferentdisplayoptions.No matterhowvaluesaredisplayed,theyarestoredas doubleprecisionfloatingpointnumbersMATLABvariablescanbesavedorimportedfrom either.MATor.DATfilesThe.MATformatisproprietarytoMATLABandisused becauseitstoresdatamoreefficientlythanotherfileChapter3“BuiltinMATLAB FunctionsGeneralmathematicalfunctions,suchas exponentialfunctions logarithmicfunctions rootsRoundingfunctionsFunctionsusedindiscretemathematics,suchas factoringfunctions primenumberfunctionsTrigonometricfunctions,includingContinued….Dataanalysisfunctions,suchas maximaandminima averages(meanandmedian) sumsandproducts sorting standarddeviationandvarianceRandomnumbergenerationforboth uniformdistributions Gaussian(normal)distributionsChapter5“PlottingThemostcommonlyusedgraphinengineeringisthex– 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 optionfromtheworkspacewindowChapter6“UserDefinedFunctionsMATLABcontainsawidevarietyofbuiltinfunctionsHowever,youwilloftenfinditusefultocreateyourown MATLABfunctionsThemostcommontypeofuserdefinedMATLAB functionisthefunctionMfile,whichmuststartwitha functiondefinitionlinethatcontains thewordfunction avariablethatdefinesthefunctionoutput afunctionname avariableusedfortheinputargumentContinued….ThefunctionnamemustalsobethenameoftheMfilein whichthefunctionisstoredFunctionnamesfollowthestandardMATLABnaming rulesLikethebuiltinfunctions,userdefinedfunctionscan acceptmultipleinputsandcanreturnmultipleresultsCommentsim ...
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 displayGợi ý tài liệu liên quan:
-
Trực quan hóa dữ liệu: Vai trò & thử thách
10 trang 35 0 0 -
Ebook Management support systems: Part 2 - Dr. Kamlesh Lakhwani
136 trang 30 0 0 -
Ebook Eloquent JavaScript - A modern introduction to programming: Part 1
199 trang 30 0 0 -
Lecture Introduction to computing systems (2/e): Chapter 19 - Yale N. Patt, Sanjay J. Patel
28 trang 26 0 0 -
Ebook Introduction to algorithms (3rd edition)
1313 trang 24 0 0 -
Lecture Data structures and algorithms: Chapter 1 - Introduction
41 trang 24 0 0 -
335 trang 21 0 0
-
169 trang 21 0 0
-
Lecture Data Structures: Lesson 41
18 trang 20 0 0 -
Lecture Data Structures: Lesson 38
71 trang 19 0 0