find maximum value indices

2 Ansichten (letzte 30 Tage)
shobhit mehrotra
shobhit mehrotra am 10 Feb. 2015
Kommentiert: per isakson am 10 Feb. 2015
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 Kommentare
shobhit mehrotra
shobhit mehrotra am 10 Feb. 2015
I have that in another line, once I can get the indices Ill substitute it in
per isakson
per isakson am 10 Feb. 2015
Replace
find( longm == max(longm(dataind{n})) )
by
find( longm == max(longm(dataind{n})), 1, 'first' )

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by