matlab 2 questions

1.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 (location) of that value in i. This function should work for an array A of any length

2.Create a function with the header [X] = mysort(A) that will sort the array A from lowest to highest and output the sorted array as X.

Hint: you can use the lowest function that you wrote for Algorithm 6 in this function to do an selection sort (but you do not have to do this if you are doing a bubble sort)