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...

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
Get step-by-step solutions from verified subject matter experts
