Question: Please use mathLab to code... Write a function POTD_5 that uses an indexing array to return the elements of an input array (inArray) in the

Please use mathLab to code...

Please use mathLab to code... Write a function POTD_5 that uses an

Write a function POTD_5 that uses an indexing array to return the elements of an input array (inArray) in the reversed order beginning with the element at the starting index (stindex) and ending with the element in position 1. Ex: If inArray is [2, 8, 9, 15, 3, 44, 23, 25, 7, 68) and stindex is 3, then calling the function in the following manner reversedOrder = POTD_5(inArray,stIndex) would result in reversedOrder = [9.8,2)

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!