Self-Assessment
Use the exercises and questions below to check that you have the required basic MATLAB knowledge to continue with the rest of the course.
Last updated
Was this helpful?
Use the exercises and questions below to check that you have the required basic MATLAB knowledge to continue with the rest of the course.
Last updated
Was this helpful?
Input the following vectors and matrices into MATLAB. Are there multiple commands that you can use to create these objects?
Which command would you use to...
...access the element containing in matrix ?
...replace the element in matrix with an ?
...to create a vector that contains the main diagonal of matrix ?
...to create the following matrix by using vector ?
...to create a column vector that contains the elements of matrix columnwise?
...to create a column vector that contains the elements of matrix rowwise?
... to divide all elements of matrix by 2?
... to add matrix and elementwise?
... to divide matrix by elementwise?
... to invert matrix ?
... to create a identity matrix?
... to create a column vector of 30 linearly spaced numbers from 10 to 110?
... to create a matrix of zeros?
... to extract the second column of
... to extract the third row of
... to select the lower right matrix in matrix ?
... to create a column vector that is the sum of the columns of
... to calculate the columnwise mean of ?
... to get the minimal element of ?
... to get the maximal element of each column of ?
... to get the maximal element of each row of ?