Question: Create two 2 times 3 matrices [ A ] and [ B ] of random integers using MATLAB built - in function. Allelements of
Create two times matrices A and B of random integers using MATLAB builtin function. Allelements of A should be in between and while all elements of B should be in between to Print the results using disp function.b Concatenate A and B in order, to form a times matrix save it as the matrix C Print theresults.c Compute ACT Print the result.d Write a function, name it as findM that takes a matrix as the input, and then outputs themaximum element, minimum element, and mean value of all elements of that matrix.e Execute the function findM using C as the input. Print the results.f Create a column vector x of size from the matrix C The vector x should be the last elementsof the second column of C You should use the matrix slicing method instead of manually inputtingthe numbers into the vector. Print the result.g Create a column vector y from the matrix C using the builtin function diag Print the result.h Perform dot product of x and y Print the result.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
