Professional Documents
Culture Documents
Objective:
Basics of Matlab.
LAB#01_1
End of a row is demarcated by semicolon.
LAB#01_2
Simple Addition
LAB#01_3
This command list all the commands used.
LAB#01_4
This command lists all the commands with the current values dimentions, etc
LAB#01_5
Simple addition
LAB#01_6
5 raise to the power of 2
LAB#01_7
In a matlab Pi = π
LAB#01_8
In a matlab infinity = inf
LAB#01_9
In a matlab x = *
LAB#01_10
Squarroot of 64
LAB#01_11
Plus, operator using infinity.
LAB#01_12
LAB#01_13
LAB#01_14
LAB#01_15
Simple multiplication.
LAB#01_16
Simple addition multiplication.
LAB#01_17
Displying four digit decimal values.
LAB#01_18
Displying four digit decimal values.
LAB#01_19
The format long e command allows display in exponential form with four decimal places plus the
exponent.
LAB#01_20
The format long e command allows display in exponential form with 16 decimal places plus the exponent.
LAB#01_21
The format rat command gives closest rational expressionresulting from a calculation.
LAB#01_22
Using space or comma to delimitthe elements.
LAB#01_23
End of a row is demarcated by semicolon.
LAB#01_24
End of a row is demarcated by semicolon.
LAB#01_25
Transpose a vector (row to column).
LAB#01_26
Creates a 2x3 matrix of zeros.
LAB#01_27
Creates a 1x3 matrix of ones.
LAB#01_28
Identity matrix(3x3).
LAB#01_29
Randomly filled 3x1 matrix.
LAB#01_30
Creates a 3x3 matrix of zeros.
LAB#01_31
Addition operator.
LAB#01_32
Subtraction operator.
LAB#01_33
Scaler and matrix multiplication operator.
LAB#01_34
Array multiplication operator.
LAB#01_35
Scaler and matrix expention operator.
LAB#01_36
Array Expention Operator.
LAB#01_37
Left Division operator.
LAB#01_38
Right Division operator.
LAB#01_39
Array Left Division operator.
LAB#01_40
Array Right Division operator.