Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

(30 Points) 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...

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.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question