Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started