Question: Create two 2 times 3 matrices [ A ] and [ B ] of random integers using MATLAB built - in function. Allelements of

Create two 2\times 3 matrices [A] and [B] of random integers using MATLAB built-in function. Allelements of [A] should be in between 1 and 10, while all elements of [B] should be in between -5 to10. Print the results using disp function.(b) Concatenate [A] and [B] in order, to form a 4\times 3 matrix (save it as the matrix [C]). Print theresults.(c) Compute [A][C]T . Print the result.(d) Write a function, name it as find3M, 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 find3M using [C] as the input. Print the results.(f) Create a column vector [x] of size 3 from the matrix [C]. The vector [x] should be the last 3 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 built-in 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!