Sheet 1 Lab
Sheet 1 Lab
(6) Use MATLAB to compute the following complex numbers in polar & rectangular form:-
(11) Use MATLAB to create a new matrix whose elements are the last two columns of the
matrix obtained in Problem 10 (i.e. remove the first three columns).
(12) From the given matrices A, B, and C find the following:-
i) Extract the second, third and fourth elements of the B vector and store them in
a new vector (say D)
ii) Create a new row vector (say E) from vector B and the number 3 such that
E=[397531]
iii) Create a new matrix (say F) from matrix A, vector C and the number 9 such that
vii) M\N
(14) From the matrix F in problem (12-iii), find the following:-
a) Extract the third column of the matrix F
b) Extract the last two elements of the matrix F
c) Convert the F matrix into a long column vector whose elements are the columns of the
matrix F stacked one by one under each other.
d) Flip the F matrix up, i.e. preserve the columns and flip the rows up.
e) Extract the lower triangular part of the matrix F.
Good Luck