Write a user-defined Matlab function that receives two vectors as input argument. If the two vector sizes are compatible
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a user-defined Matlab function that receives two vectors as input argument. If the two vector sizes are compatible
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".
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!