Select the optimum value

1 visualización (últimos 30 días)
UTS
UTS el 10 de En. de 2014
Comentada: UTS el 11 de En. de 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 comentarios
Image Analyst
Image Analyst el 10 de En. de 2014
Link doesn't work.
UTS
UTS el 11 de En. de 2014
Thank you very much for your concern and please try this link http://www.mathworks.com/matlabcentral/answers/uploaded_files/6665/MATLAB.png

Iniciar sesión para comentar.

Respuesta aceptada

Matt J
Matt J el 10 de En. de 2014
Editada: Matt J el 10 de En. de 2014
A=data(:,1);
B=data(:,2);
C=data(:,3);
result=A(abs(B<=C))
  1 comentario
UTS
UTS el 11 de En. de 2014
Thank you very much,

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by