Question: Write a custom matlab function m - file that takes as its input arguments a vector of any length. The function should return two vectors,
Write a custom matlab function mfile that takes as its input arguments a vector of any length. The function should return two vectors, with the first vector consisting of the sthalf of the input vector and the second vector consisting of the ndhalf. This must work whether your vector has an even or odd length. Use the lengthand fixfunctions to help with this. Hint: Try to do it with a vector of even length first.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
