Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
(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 1Step 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