Find out the minimum value from a column

Suppose I have a matrix of [3*10] now i want to find the minimum value from each column what will be the command for that?

 Accepted Answer

Read about the function min.
A = rand(3,10) ;
iwant = min(A) % this is same as min(A,[],1)

More Answers (0)

Products

Release

R2018b

Asked:

on 30 Jan 2022

Answered:

on 30 Jan 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!