Search for question
Question

Q1

a) Use the colon operator to create the following row vector [ 1 2 3 4 5]. Save this as variable a but suppress the output in the command window.

b) Use the transpose operator on a to create a column vector b, suppress the output in the command window.

c) Calculate a x b using matrix multiplication and display the answer clearly in the command window.