Before we get started working in MATLAB, let's review a few basic differences from R:
- in MATLAB, we always assign variables with the
=
operator
- in MATLAB, we clear the workspace with
clear all
- in MATLAB, when we move directories in the interface, our working directory updates accordingly
There are other syntax differences that we will review as we go through basic operations and expression. Go ahead and open MATLAB, then open a new script by going to New
--> Script
, and copy over the text from the script for this lesson.