calculate the closest and the furthest values to a nominal diameter

3 views (last 30 days)
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

Answers (1)

Image Analyst
Image Analyst on 26 Sep 2018
Try this
differences = diameters - nominalDiameter;
[closestDiff, indexOfClosest] = min(differences);
  1 Comment
insaf
insaf on 26 Sep 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

Sign in to comment.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!