Question: Please help!! I don't know how to solve the last problem. I need the correct coding for it. And also clear explanation for your work.

Please help!! I don't know how to solve the last problem. I need the correct coding for it. And also clear explanation for your work. Please use matlab to figure out the problem but do not use 'find' function. Thanks for the help.  Please help!! I don't know how to solve the last problem.

(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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!