Question: MATLAB 1. Create a 4 x 4 matrix containing random numbers using the MATLAB function rand and save the results in variable A. Do not
MATLAB

1. Create a 4 x 4 matrix containing random numbers using the MATLAB function rand and save the results in variable A. Do not end your statement with a semi- colon, this will echo the contents of A. Note that the numbers are printed in short floating format (4 digits to the right of the decimal point). Label this output as follows: fprintf('A: a 4 by 4 matrix of random numbers '); A = rand(4,4) 2. Create variable B containing the transpose of A. Again label and echo the contents of B. 3. Compute variables C1 and C2: C1=A*B and C2=A. *B, again labelling and echoing the output. Do you see the difference between * and .* and why they are different? * does matrix multiplication and . * does element by element multiplication of the two equal sized matrices
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
