필터 지우기
필터 지우기

Could someone explain below part of code please ? I do not understand the first part [~,b]

조회 수: 1 (최근 30일)
[~,b] = min(abs(RealEL1));

채택된 답변

Matt J
Matt J 2017년 10월 4일
편집: Matt J 2017년 10월 4일
These are the outputs of the min() function. b is the location of the minimum value. ~ means that the first output argument, the minimum value itself, is not to be assigned to any variable.

추가 답변 (1개)

Guillaume
Guillaume 2017년 10월 4일
The ~ ignores the first output of min as you're only interested in the index of the minimum, not its actual value.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by