![Phân tích tư tưởng của nhân dân qua đoạn thơ: Những người vợ nhớ chồng… Những cuộc đời đã hóa sông núi ta trong Đất nước của Nguyễn Khoa Điềm](https://timtailieu.net/upload/document/136415/phan-tich-tu-tuong-cua-nhan-dan-qua-doan-tho-039-039-nhung-nguoi-vo-nho-chong-nhung-cuoc-doi-da-hoa-song-nui-ta-039-039-trong-dat-nuoc-cua-nguyen-khoa-136415.jpg)
Lecture note Data visualization - Chapter 20
Số trang: 40
Loại file: pptx
Dung lượng: 3.66 MB
Lượt xem: 4
Lượt tải: 0
Xem trước 4 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: Graphic window, edit window, start button, matrices in matlab, scalar operations, order of operations, array operations, matrix addition, matrix multiplication, number display (scientific notation), script m-files.
Nội dung trích xuất từ tài liệu:
Lecture note Data visualization - Chapter 20Lecture20RecapGraphicWindowEditWindowStartButtonMatricesinMATLABScalarOperationsOrderofOperationsArrayOperationsMatrixAdditionTypesofMfilesTwotypes Script FunctionScriptMfileThescriptcanuseanyvariablesthathavebeendefinedin theworkspace,andanyvariablescreatedinthescriptare addedtotheworkspacewhenthescriptexecutesAscriptcreatedintheMATLABeditwindowcanbe executedbyselectingtheSaveandRuniconfromthe menubarAscriptcanbeexecutedbytypingafilenameorbyusing theruncommandfromthecommandwindowNomatterhowyoudoit,youcanonlyrunanMfileifit isinthecurrentfolderEditor/DebuggerWindowCellModeItisautilitythatallowstheusertodivideMfilesinto sections,orcells,thatcanbeexecutedoneatatimeThisfeatureisparticularlyusefulasdevelopMATLAB® programsaredevelopedToactivatethecellmode,select Cell>EnableCellMode fromthemenubarintheeditwindowOncethecellmodehasbeenenabled,thecelltoolbar appearsIt’simportanttoincludethespaceafterthedoubleContinued…. percentagesign(%%).Ifdon’t,thelineisrecognizedasa comment,notacelldividerOncethecelldividersareinplace,ifcursorispositioned anywhereinsidethecell,theentirecellturnspaleyellowNowusetheevaluationiconsonthecelltoolbarto evaluateasinglesection,evaluatethecurrentsectionand moveontothenextsection,orevaluatetheentirefileAlsoonthecelltoolbarisaniconthatlistsallthecell titlesintheMfileContinued….Bydividingtheprogramintocells,itwaspossibleto workoneachproblemseparatelyBesuretosaveanyMfilesdevelopedthiswayby selectingSaveorSaveAsfromthefilemenu: File>Save or File>SaveAsThereasonforusingthesecommandsisthatincellmode, theprogramisnotautomaticallysavedeverytimewhenit isrunSummaryofChapter Chapter3BuiltinMATLABFunctionUsingBuiltinFunctionsManyofthenamesforMATLAB’sbuiltinfunctionsare thesameasthosedefinednotonlyintheCprogramming language,butinFortranandJavaaswellForexample:totakethesquarerootofthevariablex, wetypeb=sqrt(x)AbigadvantageofMATLABisthatfunctionarguments cangenerallybeeitherscalarsormatricesInourexample,ifxisascalar,ascalarresultisreturnedThus,thestatementContinued….However,thesquarerootfunction,sqrt,canalsoaccept matricesasinputInthiscase,thesquarerootofeachelementiscalculated, so x=[4,9,16]; b=sqrt(x) returns b=234AllfunctionscanbethoughtofashavingthreeContinued….SomefunctionsrequiremultipleinputsForexample:theremainderfunction,rem,requirestwo inputs:adividendandadivisor.Werepresentthisas rem(x,y),sorem(10,3)calculatestheremainderof10dividedby3:ans=1Thesizefunctionisanexampleofafunctionthatreturns twooutputs,whicharestoredinasinglearray.It determinesthenumberofrowsandcolumnsinamatrix.Continued….AusefulfeatureofthemorerecentversionsofMATLAB istheadaptivehelpcapabilityAsafunctionnameistyped,ascreentipappears showingthecorrectfunctionformatItalsoincludesalinktothefunction’shelppage.Amorecomplicatedexpressionscanbecreatedby nestingfunctionsForinstance: g=sqrt(sin(x))UsingtheHELPFeatureMATLABincludesextensivehelptools,whichare especiallyusefulinunderstandinghowtousefunctionsTherearetwowaystogethelpfromwithinMATLAB Acommandlinehelpfunction AnHTMLbasedsetofdocumentationavailableby selectingHelpfromthemenubar,selectingthehelpiconor byusingtheF1functionkeyThereisalsoanonlinehelpsetofdocumentation, availablethroughtheStartbuttonortheHelpicononthe menubarContinued….Tousethecommandlinehelpfunction,typehelpinthe commandwindow helpAlistofhelptopicswillappear: HELPtopics: MATLAB\general –Generalpurposecommands MATLAB\ops –Operatorsandspecialcharacters MATLAB\lang –Programminglanguageconstructs MATLAB\elmat –ElementarymatricesandmatrixExampletogethelponthetangentfunction,type helptanThefollowingshouldbedisplayed: TAN Tangentofargumentinradians. TAN(X)isthetangentoftheelementsofX Seealsoatan,tand,atan2
Nội dung trích xuất từ tài liệu:
Lecture note Data visualization - Chapter 20Lecture20RecapGraphicWindowEditWindowStartButtonMatricesinMATLABScalarOperationsOrderofOperationsArrayOperationsMatrixAdditionTypesofMfilesTwotypes Script FunctionScriptMfileThescriptcanuseanyvariablesthathavebeendefinedin theworkspace,andanyvariablescreatedinthescriptare addedtotheworkspacewhenthescriptexecutesAscriptcreatedintheMATLABeditwindowcanbe executedbyselectingtheSaveandRuniconfromthe menubarAscriptcanbeexecutedbytypingafilenameorbyusing theruncommandfromthecommandwindowNomatterhowyoudoit,youcanonlyrunanMfileifit isinthecurrentfolderEditor/DebuggerWindowCellModeItisautilitythatallowstheusertodivideMfilesinto sections,orcells,thatcanbeexecutedoneatatimeThisfeatureisparticularlyusefulasdevelopMATLAB® programsaredevelopedToactivatethecellmode,select Cell>EnableCellMode fromthemenubarintheeditwindowOncethecellmodehasbeenenabled,thecelltoolbar appearsIt’simportanttoincludethespaceafterthedoubleContinued…. percentagesign(%%).Ifdon’t,thelineisrecognizedasa comment,notacelldividerOncethecelldividersareinplace,ifcursorispositioned anywhereinsidethecell,theentirecellturnspaleyellowNowusetheevaluationiconsonthecelltoolbarto evaluateasinglesection,evaluatethecurrentsectionand moveontothenextsection,orevaluatetheentirefileAlsoonthecelltoolbarisaniconthatlistsallthecell titlesintheMfileContinued….Bydividingtheprogramintocells,itwaspossibleto workoneachproblemseparatelyBesuretosaveanyMfilesdevelopedthiswayby selectingSaveorSaveAsfromthefilemenu: File>Save or File>SaveAsThereasonforusingthesecommandsisthatincellmode, theprogramisnotautomaticallysavedeverytimewhenit isrunSummaryofChapter Chapter3BuiltinMATLABFunctionUsingBuiltinFunctionsManyofthenamesforMATLAB’sbuiltinfunctionsare thesameasthosedefinednotonlyintheCprogramming language,butinFortranandJavaaswellForexample:totakethesquarerootofthevariablex, wetypeb=sqrt(x)AbigadvantageofMATLABisthatfunctionarguments cangenerallybeeitherscalarsormatricesInourexample,ifxisascalar,ascalarresultisreturnedThus,thestatementContinued….However,thesquarerootfunction,sqrt,canalsoaccept matricesasinputInthiscase,thesquarerootofeachelementiscalculated, so x=[4,9,16]; b=sqrt(x) returns b=234AllfunctionscanbethoughtofashavingthreeContinued….SomefunctionsrequiremultipleinputsForexample:theremainderfunction,rem,requirestwo inputs:adividendandadivisor.Werepresentthisas rem(x,y),sorem(10,3)calculatestheremainderof10dividedby3:ans=1Thesizefunctionisanexampleofafunctionthatreturns twooutputs,whicharestoredinasinglearray.It determinesthenumberofrowsandcolumnsinamatrix.Continued….AusefulfeatureofthemorerecentversionsofMATLAB istheadaptivehelpcapabilityAsafunctionnameistyped,ascreentipappears showingthecorrectfunctionformatItalsoincludesalinktothefunction’shelppage.Amorecomplicatedexpressionscanbecreatedby nestingfunctionsForinstance: g=sqrt(sin(x))UsingtheHELPFeatureMATLABincludesextensivehelptools,whichare especiallyusefulinunderstandinghowtousefunctionsTherearetwowaystogethelpfromwithinMATLAB Acommandlinehelpfunction AnHTMLbasedsetofdocumentationavailableby selectingHelpfromthemenubar,selectingthehelpiconor byusingtheF1functionkeyThereisalsoanonlinehelpsetofdocumentation, availablethroughtheStartbuttonortheHelpicononthe menubarContinued….Tousethecommandlinehelpfunction,typehelpinthe commandwindow helpAlistofhelptopicswillappear: HELPtopics: MATLAB\general –Generalpurposecommands MATLAB\ops –Operatorsandspecialcharacters MATLAB\lang –Programminglanguageconstructs MATLAB\elmat –ElementarymatricesandmatrixExampletogethelponthetangentfunction,type helptanThefollowingshouldbedisplayed: TAN Tangentofargumentinradians. TAN(X)isthetangentoftheelementsofX Seealsoatan,tand,atan2
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 36 0 0 -
Ebook Management support systems: Part 2 - Dr. Kamlesh Lakhwani
136 trang 32 0 0 -
Lecture Introduction to computing systems (2/e): Chapter 19 - Yale N. Patt, Sanjay J. Patel
28 trang 31 0 0 -
Ebook Introduction to algorithms (3rd edition)
1313 trang 30 0 0 -
Lecture Data Structures: Lesson 38
71 trang 28 0 0 -
Lecture Data structures and algorithms: Chapter 1 - Introduction
41 trang 28 0 0 -
Ebook Introduction to algorithms (Second Edition)
429 trang 27 0 0 -
335 trang 26 0 0
-
Lecture Data Structures: Lesson 32
16 trang 25 0 0