Please solve this problem using RECURSIVE FUNCTIONS AND MATLABlanguage only.
Write a recursive program which asks a user to input a vectorand a number. The program should return the location of the firstoccurrence of the number in the vector; however, if it is notpresent in the vector, it should return ’Inf’ or 0.
Example1
Enter a vector: [1 2 44 5 6 4 4]
Enter a number to find the location in the vector: 3
The location of 3 in the array is Inf
Example2
Enter a vector: [2 5 6 8 12 5 9 8 5]
Enter a number to find the location in the vector: 8
The
PayPal Gateway not configured
PayPal Gateway not configured