Select the optimum value

4 vues (au cours des 30 derniers jours)
UTS
UTS le 10 Jan 2014
Commenté : UTS le 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 commentaires
Image Analyst
Image Analyst le 10 Jan 2014
Link doesn't work.
UTS
UTS le 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

Connectez-vous pour commenter.

Réponse acceptée

Matt J
Matt J le 10 Jan 2014
Modifié(e) : Matt J le 10 Jan 2014
A=data(:,1);
B=data(:,2);
C=data(:,3);
result=A(abs(B<=C))
  1 commentaire
UTS
UTS le 11 Jan 2014
Thank you very much,

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by