Question: Assignment Even and Odd. First, you will develop a few very simple utility functions to derive the even and odd parts from an input sequence.

Assignment Even and Odd. First, you will develop a few very simple utility functions to derive the even and odd parts from an input sequence. We will assume that the sequences are specified in the manner defined in Laboratory #1, namely as sequence objects with the data array in x.data, and an offset integer in x.offset. Here are the functions: function y = even (x) % EVEN Take a Matlab sequence object, x, which is possibly complex, and create a g Matlab sequence structure, y, that corresponds to the even part function y = odd (x) % ODD go Take a Matlab sequence object, x, which is possibly complex, and create A Matlab sequence structure, y, that corresponds to the odd part function y = trim(x) % TRIM Take a Matlab sequence object and remove leading and trailing zeros, go appropriately adjusting offset
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
