Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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"
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started