Question: Matlab - Loops - 'For Loop' Design and implement a function, showindexeddata, that, given two vectors (input arguments), one with data, and the other with
Matlab - Loops - 'For Loop'
Design and implement a function, showindexeddata, that, given two vectors (input arguments), one with data, and the other with indices, displays de contents of the first one selected in the second (for).
Example: myData=[10 3 4 11 8 9 1] myIndices=[1 2 5]
>>showindexeddata(myData,myIndices)
10
3
8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
