Question: Algorithm 6 First draw a flow chart then create a function with the header [X, i] = lowest(A) that will find the lowest value of

Algorithm 6

First draw a flow chart then create a function with the header [X, i] = lowest(A) that will find the lowest value of the array A and output the value in X and the index of that value in i. This function should work for an array A of any length

Hint: the length( ) function may be of use

Rules: you cannot use the MATLAB sort( ) function and you cannot use the max( ) or min( ) functions

Check your function:

[X, i] = lowest([19, 24, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 32])

X =

1

i =

11

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!