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.

please help me write this a MATLAB scrip. Assume the vector AM

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!