Select the optimum value

조회 수: 4 (최근 30일)
UTS
UTS 2014년 1월 10일
댓글: UTS 2014년 1월 11일
How can I selec the optimum value, for example, Select A if abs(B <= C). please see the attached file, Thanks in advance
  댓글 수: 2
Image Analyst
Image Analyst 2014년 1월 10일
Link doesn't work.
UTS
UTS 2014년 1월 11일
Thank you very much for your concern and please try this link http://www.mathworks.com/matlabcentral/answers/uploaded_files/6665/MATLAB.png

댓글을 달려면 로그인하십시오.

채택된 답변

Matt J
Matt J 2014년 1월 10일
편집: Matt J 2014년 1월 10일
A=data(:,1);
B=data(:,2);
C=data(:,3);
result=A(abs(B<=C))
  댓글 수: 1
UTS
UTS 2014년 1월 11일
Thank you very much,

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by