Question: Write a user-defined MATLAB function (named DotProd) that takes two vectors of the same length as input arguments and returns the dot product of the

Write a user-defined MATLAB function (named DotProd) that takes two vectors of the same length as input arguments and returns the dot product of the two vectors. You can assume that the two input vectors are always of the same length so that you dont have to deal with the situation when their lengths are different. Note that for this question you cannot use the MATLAB built-in function (dot) for computing the dot product.
3. (6 points) write a user-defined MATLAB function (named DotProd that takes two vectors of the same length as input arguments and returns the dot product of the two vectors. The dot product of two vectors a la, az, ael and b [bu b. bel is defined as a b a,b a, b, a,b a,b You can assume that the two input vectors are always of the same length so that you don't have to deal with the situation when their lengths are different. Note that for this question you cannot use the MATLAB built-in function (dot) for computing the dot product
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
