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
Image Analyst
Image Analyst on 10 Jan 2014
Link doesn't work.
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))

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!