How to get arg min of an N-dimensional Matrix ?
이전 댓글 표시
Hi, i'm having an image of size[280,307,191] and i want to get the argmin of it,Any help?
채택된 답변
추가 답변 (3개)
Cedric
2013년 4월 15일
How do you define argmin? If it is the global min, you can get it as follows:
min(M(:))
where M is your 3D array.
댓글 수: 4
Rawan hamdi
2013년 4월 16일
편집: Rawan hamdi
2013년 4월 16일
Jan
2013년 4월 16일
Why do you want to implement something, when you do not know its mathematical meaning?
Sreeda M A
2016년 7월 13일
can you please explain what values should I give for M ??
Andrei Bobrov
2016년 7월 13일
편집: Andrei Bobrov
2016년 7월 13일
Hi Sreeda M A! Example:
M = randi(400,280,307,191);
Sean de Wolski
2013년 4월 15일
Or:
min(min(min(M)))
댓글 수: 2
Ties Hendrickx
2019년 4월 29일
Nope, this will return the minimum value and not the index of the minimum value
Steven Lord
2019년 4월 30일
0 개 추천
If you're using release R2019a or later, you probably want to call min with the 'all' dimension input and the 'linear' flag.
카테고리
도움말 센터 및 File Exchange에서 Region and Image Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!