Question: Reshape Matrix Please help with this Matlab question. It needs to work for all four tests. I don't need a full solution, just an idea

"Reshape Matrix"

"Reshape Matrix" Please help with this Matlab question. It needs to work

for all four tests. I don't need a full solution, just an

Please help with this Matlab question. It needs to work for all four tests. I don't need a full solution, just an idea would be great. Thank you.

Write a functin called reshape_12 that takes a matrix with 12 element(size of matrix can be any thing). The function return a reshaped matrix with size 3 by 4. Do not use built_in function reshape. the number of element in input matrix is always 12 For an example, see the code below: A= [1 2 3 4 5 6 7 8 9 10 11 12]; M = reshape_12(A) M= 1 2 3 4 5 6 7 8 9 10 11 12 reshape_12( 1:12) reshape_12( 3 by 4 matrix) reshape_12( 2 by 6 matrix) reshape_12( 12 by 1 matrix)

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!