Join Patrick Royal for an in-depth discussion in this video Creating scripts, part of Learning MATLAB.
Let's practice writing simple scripts in MATLAB by creating a program that …provides some summary statistics for a list of daily prices for the SMP 500 from …2000 to 2010. The sample data can be found in the …excersize files for chapter three. To start with, click the New Script …button to open up the script editor window and save it as practice scripts.m. …Here you can write the relevant commands an run the script.…
The first thing we need to do is to load the chosen data into the function. …It can't directly reference a file in its formulas. …I won't go into a lot of detail about file formats in this video but MATLAB can …automatically convert CSV files into matrices. …So you can simply use the CSV read function. …I'll start by defining a new variable called stocks. …And set it equal to CSV read of sample data.csv.…
The data in this file has only one column containing the clothes prices so the …matrix should be 2515 by 1. If you run the script that is exactly …what you will see. From here manipulating the data is as …
- 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
PHP with MySQL Essential Trainingwith Kevin Skoglund14h 32m Beginner
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?
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.