Select the optimum value

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

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

Tags

Asked:

UTS
on 10 Jan 2014

Commented:

UTS
on 11 Jan 2014

Community Treasure Hunt

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

Start Hunting!