Question: Using matlab write a function that takes an array as an input parameter and returns a copy of the array in the output variable. The
Using matlab write a function that takes an array as an input parameter and returns a copy of the array in the output variable. The returned array should have the same elements as the original array, but in reversed order

Write a function that takes an array as an input parameter, and returns a copy of the array in the output variable. The returned array should have the same elements as the original array, but in reversed order. Name your function "ReverseArray" and put it in a file with the correct name. Make sure your function has a contract. You are to write this one on your own, but you can use the following hints: . Your function should have one input parameter and one output variable. Give them reasonable names . You will need to create an array of the same size as the original array and store it in your output variable. . Write a loop that copies each element, one at a time, from the original array into the output array (in reverse order)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
