Question: Please help me with this matlab problem and some explanation behind the use of each code. The last time I asked, an expert gave me
Please help me with this matlab problem and some explanation behind the use of each code. The last time I asked, an expert gave me a wrong code. So I'm serious I really wish someone can actually help me with that. Thank you. 
(15 points) Question 10 Write all the code below to create the function [countN, indexN] accepts the input variables findN (V,N) that - V is a 1x m array of doubles with any numbers N is a 1x1 double that you want to find in arrayV The function should return 2 outputs countN should be a 1x1 the number of occurrences of the number N i array V indexN should be an array of the linear indices corresponding to places where n occurs in V. The output of the function should agree with the following test cases. (You may not use the built in MATLAB function find) TEST CASE 1 countN indexN - 2 TEST CASE 2 >> [countN, indexnj countN = findN([0 1 0 1 0 3-1] ,4) 0 indexN - : lena th ergth(v else erd 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
