Effacer les filtres
Effacer les filtres

How to know what at iteration is the minimum value occuring?

1 vue (au cours des 30 derniers jours)
DIP
DIP le 25 Avr 2017
Commenté : DIP le 25 Avr 2017
Hi All
Suppose I have a matrix A [ 9 8 6 7 8 2 5 9 6 ] . The minimum occurs at the 6th element. What code does one use to find the iteration number or matrix element where the required value is to be seen ?

Réponse acceptée

KSSV
KSSV le 25 Avr 2017
doc min
A = [ 9 8 6 7 8 2 5 9 6 ] ;
[val,idx] = min(A)

Plus de réponses (0)

Catégories

En savoir plus sur NaNs dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by