Professional Documents
Culture Documents
MATLAB
LECTURE 1- EXPERTS VISION
STUFF COVERED EARLIER
Creating variables
Difference between script and a function
Generating plots
Implementing equations
If else statements
For loop
Creating variables
To create a variable, simply assign value to a name.
var1=3.14
myString=‘hello world’
The first character of a variable name must be a letter,
after that you can use any combination of letters,
numbers and ‘_’ symbol.
To overwrite a variable, simply redefine it. Its value will
be updated in the workspace.
The names of the variables are case sensitive, var1 is not
the same as VAR1!!
Built in variables of Matlab
These are the very basics, once you get the hang of
these, the rest will come very naturally to you….
Automatic Initialization
Automatic Initialization
Exercise: