Select the optimum value

2 views (last 30 days)
UTS
UTS on 10 Jan 2014
Commented: UTS on 11 Jan 2014
How can I selec the optimum value, for example, Select A if abs(B <= C). please see the attached file, Thanks in advance
  2 Comments
UTS
UTS on 11 Jan 2014
Thank you very much for your concern and please try this link http://www.mathworks.com/matlabcentral/answers/uploaded_files/6665/MATLAB.png

Sign in to comment.

Accepted Answer

Matt J
Matt J on 10 Jan 2014
Edited: Matt J on 10 Jan 2014
A=data(:,1);
B=data(:,2);
C=data(:,3);
result=A(abs(B<=C))
  1 Comment
UTS
UTS on 11 Jan 2014
Thank you very much,

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!