a) Write a MATLAB function which calculates the minimum positive value of the elements of avector, and call it minpos. If there are no positive values, it should return the empty matrix.Hint (this part only): Think find or logical relations.
b) If the previous part did not work for matrices, modify it so it does. That is, min returns a rowvector of the minimum value in each column of a matrix, and so should minpos.Hint (this part only): max and min ignore NaNs.
Here is the code with description... View the full answer