Join Patrick Royal for an in-depth discussion in this video Understanding data structures, part of Learning MATLAB.
Let's explore the different ways of representing data in MATLAB. …So far, I've covered creating basic one and two dimensional arrays in MATLAB, but …MATLAB supports much more complicated structures. …Creating an array with more than two dimensions can't be done directly because …there's no simple way to represent three or more dimensions of data on a two …dimensional screen. Instead, you can allocate memory for the …array and then define it slice by slice. To allocate memory for the array, I need …to tell MATLAB what dimensions to use and what values to put into it.…
I'll do this by calling the zeroes, ones, rand, or randn functions with parameters …representing the dimensions of the array. For instance, if I type in zeros 2,2,2, …it tells MATLAB to create a 2 by 2 by 2 cubic array where all of the values are 0. …1s creates an array with all the values of 1, rand creates an array where all …values are random numbers between 0 and 1, and randn creates an array where all …values are normally distributed random numbers.…
- 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.