Question: this is a MATLAB question Task 4 (15 points) Write a function that returns the transpose of a given 3x3 matrix without using any of
this is a MATLAB question
Task 4 (15 points) Write a function that returns the transpose of a given 3x3 matrix without using any of the built in functions (e.g. transpose(M) or rot90(M), or the transpose operator ') anywhere in your function. Call this function transposemat, it will receive on input argument x, which is a 3x3 matrix, and wil return one output argument Y, which is a 3x3 matrix. Example: >x[1 2 3; 1 21; 3 5 1 ytransposemat( x ; >> transposemat (I1 2 3; 121; 3 5 1]) ans 3 by 2 >>disp(transposemat ([1 2 3; 1 21; 3 5 1])) 2 2 >> help transposemat transposemat (x) returns the transpose of matrix x Note: The syntax for your function would be transposemat ([your_matrix])
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
