Hi, I'm a student studying engineering and I have my first exam tomorrow on MatLab. I'm going through some practice problems and ran into two that I don't understand, I posted them below and was wondering if anyone could help me out! Thanks
6) Assume that the function *diff* does not exist. Write your own expression(s) to accomplish the same thing for a vector.
7) Find expressions that will evaluate the function f of two variables x and y:
f(x,y) = 3*x - y
where x ranges from 1 to 2 and y ranges from 1 to 5.
No products are associated with this question.
Hint: type out vec(1:end-1) and vec(2:end) and see what that shows.