Assume that the function dif does not exist. Write your own expression(s) to accomplish the same thing for a vector
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:2| Question number:46.2
All Answers
total answers (1)
>> vec = [5 11 2 33 -4]
vec =
5 11 2 33 -4
>> v1 = vec(2:end);
>> v2 = vec(1:end-1);
>> v1-v2
ans =
6 -9 31 -37
need an explanation for this answer? contact us directly to get an explanation for this answer