Filter löschen
Filter löschen

How do i get the position of the minimum value in at 3 dimensional array?

2 Ansichten (letzte 30 Tage)
maarten de Jong
maarten de Jong am 29 Dez. 2016
Bearbeitet: Matt J am 29 Dez. 2016
If I have a 3 dimensional array, an I want to find the position of the minimal value of that array, preferably in vector form, what command do I use?

Antworten (1)

Matt J
Matt J am 29 Dez. 2016
Bearbeitet: Matt J am 29 Dez. 2016
minval=min(yourArray(:));
[xloc,yloc,zloc] = ind2sub(size(yourArray), find(yourArray==minval) )

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by