Question: 1. Write a Matlab function (called progl) that will take a vector v and determine if the sequence of a smaller vector, u, is present.

1. Write a Matlab function (called progl) that will take a vector v and determine if the sequence of a smaller vector, u, is present. For example, if v 2,-3,8, 1,6,5, 19,-2], then >> progl(v, [2,8,1]) returns a 0 because [2,8, 1] is not sequentially in v and >> prog1(,-38.11) returns a 1 because 1-3, 8. I is sequentially in the vector v. (Turn in the script and a diary of the program running for at least two examples
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
