1. Write a MATLAB user-defined function that finds the index of the maximum absolute value within a...
Fantastic news! We've Found the answer you've been seeking!
Question:
1. Write a MATLAB user-defined function that finds the index of the maximum absolute value within a range of indices in an array. For example, if we had the array [1 0 -12 14 7], and we called the function with the
range 1,3, the function would return 3 as the index of the location of the number -12. If the function was called with the range 2,5, the function would return 4, the location of 14.
2. Write a MATLAB user-defined function that interchanges two rows in a matrix, element by element.
3. Write a MATLAB user-defined function to pivot a matrix, if necessary, using the functions written in Parts 1 and 2.
Related Book For
Practicing Statistics Guided Investigations For The Second Course
ISBN: 9780321586018
1st Edition
Authors: Shonda Kuiper, Jeff Sklar
Posted Date: