Join Patrick Royal for an in-depth discussion in this video Creating basic plots, part of Learning MATLAB.
Let's look at ways of displaying data in MATLAB. …The basic functions for plotting a two dimensional graph in MATLAB is the plot fucntion. …There are a wide variety of syntaxes for this function, allowing you to change …many of the settings of the plot as it's created. …The simplest plot takes a single vector of data and plots the data values against …the index number of the data in the vector. …For example, I can import the dailydata.csv file in the exercise files, …and then just make sure that all 3 columns are selected and import them into MATLAB.…
This displays the date, closing price, and volume of shares traded for the S&P …500 for each day from the year 2000 to 2009. …The date in this case is displayed as the number of days since 1900. …This is an often-used format, which makes it easy to do math on the days rather …than worrying about going from one month to the next and not having the same …number of days in each month. Once the data is imported, you can type …the command plot, close and it will automatically plot the closing price …
- Installing MATLAB
- Working with MATLAB variables
- Working with matrix and scalar operations
- Creating functions
- Understanding performance considerations
- Building basic plots
- Creating responsive programs
- Editing variables manually
- Working with the Statistics Toolbox
Skill Level Intermediate
1. General Concepts
2. Core MATLAB Syntax
3. Programming in MATLAB
4. Data Representations
5. External Toolboxes
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.