Question: Please help me with these 3 matlab questions! 1. Write a MATLAB function with the header function [M1, M2] = mySplitMatrix(M) where M is a
Please help me with these 3 matlab questions!
1. Write a MATLAB function with the header
function [M1, M2] = mySplitMatrix(M)
where M is a matrix, M1 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 mod functions should be helpful.
2. 
3.
![function with the header function [M1, M2] = mySplitMatrix(M) where M is](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f53197565ea_04666f53196d16ce.jpg)
(2) Write a MATLAB function with the header function [M] = myCheckerBoard(n) where M e RnXn has the following form: 1 01 0 1 and n is a positive integer. Note that the upper-left element should always be 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
