Question: 4. Write a custom matlab function m-file that takes as its input arguments a vector of any length. The function should return two vectors, with
4. Write a custom matlab function m-file that takes as its input arguments a vector of any length. The function should return two vectors, with the first vector consisting of the 1st half of the input vector and the second vector consisting of the 2ndhalf. This must work whether your vector has an even or odd length. Use the length and fix functions to help with this. (Hint: Try to do it with a vector of even length first. 5. Determine (and demonstrate) the matlab code for accessing the submatrix from row m-2 to m-1 and column n-2 to n-1 of any mx n matrix (that is at least 3x3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
