Info

This question is closed. Reopen it to edit or answer.

Modify the function myStats (from question-1) and write myStats_2 so that the input argument k is optional. In case this argument is omitted, then the function myStats_2 returns the smallest and the largest element in the myArray. Write a script he

1 view (last 30 days)
Modify the function myStats (from question-1) and write myStats_2 so that the input argument k is optional. In case this argument is omitted, then the function myStats_2 returns the smallest and the largest element in the myArray. Write a script helpMyStats_.m which reads all the elements of myArray and the value k from the user and displays the result by calling myStats_2 function with the appropriate input data. Also test various ways to call myStats_2.

Answers (0)

This question is closed.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!