Assume the vector AM contains an even number of elements.Develop a MATLAB script that asks the user for the vector AM andonce the vector is found to contain an even number of elements,divide the product of its even elements by the sum of its oddelements without using the MATLAB functions prod or sum. Store theresult in a variable called PDS. If AM is found to contain an oddnumber of elements, display an error message and prompt the useragain for a vector with an even number of elements.