Write a user-defined Matlab function that receives two vectors as input argument. If the two vector sizes are compatible
Posted: Fri Apr 29, 2022 8:03 am
Write a user-defined Matlab function that receives two vectors as input argument. If the two vector sizes are compatible, then the function calculates the sum of the multiplication of the components with each other (dot product of two vectors) as the output. Built-in functions that directly calculates the dot-product are not allowed. If the input vector sizes are NOT compatible, then the function prints the message "Vector sizes are not compatible".