Professional Documents
Culture Documents
Susovan Jana
Department of Information Technology
Institute of Engineering & Management, Kolkata, INDIA
Email (O): susovan.jana@iemcal.com
Email (P): jana.susovan2@gmail.com
2
Creating a Variable
A variable is simply a name that we assign to a specific value
The newly created variable will be in the matlab workspace
memory until you clear it or quit the matlab application
Syntax
─ <variable name>=<value>;
Example 1:
─ x=7;
Example 2:
─ name="Suvo“;
Example 3: Matrix
─ A=[2 4 7; 3 5 1; 6 7 4];
lastValue end
n_factorial n!
+ Addition plus()
- Subtraction minus()