Question: 30 cm 4.) Write a function with header (MLM2] = mySplit Matrix (M). where M is a matrix, MI is the left half of M,
30 cm 4.) Write a function with header (MLM2] = mySplit Matrix (M). where M is a matrix, MI is the left half of M, and M2 is the right half of M. In the case where there is an odd number of columns, the middle column should go to M1. Hint: The size and cell functions will ha useful for this. Assume that M has at least two columns. Test Cases: >> M - [1 2 3; 4 5 6; 7 8 91 M- 1 2 [M1, M2] - mySplit Matrix (M) MI = 00 UN
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
