calculate the closest and the furthest values to a nominal diameter

3 visualizaciones (últimos 30 días)
insaf
insaf el 26 de Sept. de 2018
Comentada: insaf el 26 de Sept. de 2018
I have plotted different circles with convergent diameters to a nominal value. I want to know which circle is the closest and the which one is the furthest from the nominal circle. I really really need your help

Respuestas (1)

Image Analyst
Image Analyst el 26 de Sept. de 2018
Try this
differences = diameters - nominalDiameter;
[closestDiff, indexOfClosest] = min(differences);
  1 comentario
insaf
insaf el 26 de Sept. de 2018
that's work so good!! thank you so much I want to ask also, if it possible, how can I do the same but with squares? thank you again

Iniciar sesión para comentar.

Categorías

Más información sobre 2-D and 3-D Plots 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