フィルターのクリア

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

1 回表示 (過去 30 日間)
DIP
DIP 2017 年 4 月 25 日
コメント済み: DIP 2017 年 4 月 25 日
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 ?

採用された回答

KSSV
KSSV 2017 年 4 月 25 日
doc min
A = [ 9 8 6 7 8 2 5 9 6 ] ;
[val,idx] = min(A)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNaNs についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by