MATLAB Answers

find maximum value indices

1 ビュー (過去 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?
  10 件のコメント
per isakson
per isakson 2015 年 2 月 10 日
find( longm == max(longm(dataind{n})) )
find( longm == max(longm(dataind{n})), 1, 'first' )


回答 (0 件)


Community Treasure Hunt

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

Start Hunting!

Translated by