Find out the minimum value from a column

3 vues (au cours des 30 derniers jours)
NIRBAN CHAKRABORTY
NIRBAN CHAKRABORTY le 30 Jan 2022
Réponse apportée : KSSV le 30 Jan 2022
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?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by