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

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!