Question: please help me write this a MATLAB scrip. Assume the vector AM contains an even number of elements. Develop a MATLAB script that asks a
please help me write this a MATLAB scrip.

Assume the vector AM contains an even number of elements. Develop a MATLAB script that asks a user for the vector AM and once the vector is found to contain an even number of elements, divide the product of the even elements by the sum of the odd elements without using the MATLAB functions prod or sum. Store the result in PDS and display the output (using fprintf or disp). If AM contains an odd number of elements, print out an error message
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
