find maximum value indices

2 ビュー (過去 30 日間)
shobhit mehrotra
shobhit mehrotra 2015 年 2 月 10 日
コメント済み: per isakson 2015 年 2 月 10 日
Im trying to find the indices number of the max of a certain function.
delcx(:,n) = (massch4(max(longm(dataind{n}))))
I want to find the massch4 at the location where longm is a max value. Can I do that in one line? Can I use the find function?
Thanks!
  10 件のコメント
shobhit mehrotra
shobhit mehrotra 2015 年 2 月 10 日
I have that in another line, once I can get the indices Ill substitute it in
per isakson
per isakson 2015 年 2 月 10 日
Replace
find( longm == max(longm(dataind{n})) )
by
find( longm == max(longm(dataind{n})), 1, 'first' )

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeWrite Unit Tests についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by