필터 지우기
필터 지우기

Help on understanding the following matlab code ?

조회 수: 3 (최근 30일)
anshuman mishra
anshuman mishra 2019년 11월 22일
답변: Jan 2019년 11월 22일
xt= 15 10 5 0
11 6 1 4
7 2 3 8
3 2 7 12
1 6 11 16
[~,J]=min(flipud(xt),[ ],2)
----------------------------------------------------------
Output J= 1
2
2
3
4

채택된 답변

Jan
Jan 2019년 11월 22일
Step by step:
  • flipud(xt): This flipps the order of elements vertically. Try it:
x = rand(3,2)
flipud(x)
  • min(Y, [ ], 2) : find the minimal value along the 2nd dimension
  • [~, J] = ... : Ignore the first output and assing the 2nd output to the variable J
See also:
doc flipud
doc min

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by