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 Commenti

Image Analyst
Image Analyst il 10 Gen 2014
Link doesn't work.
UTS
UTS il 11 Gen 2014
Thank you very much for your concern and please try this link http://www.mathworks.com/matlabcentral/answers/uploaded_files/6665/MATLAB.png

Accedi per commentare.

 Risposta accettata

Matt J
Matt J il 10 Gen 2014
Modificato: Matt J il 10 Gen 2014
A=data(:,1);
B=data(:,2);
C=data(:,3);
result=A(abs(B<=C))

Più risposte (0)

Categorie

Tag

Richiesto:

UTS
il 10 Gen 2014

Commentato:

UTS
il 11 Gen 2014

Community Treasure Hunt

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

Start Hunting!

Translated by