calculate the closest and the furthest values to a nominal diameter

조회 수: 3 (최근 30일)
insaf
insaf 2018년 9월 26일
댓글: insaf 2018년 9월 26일
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

답변 (1개)

Image Analyst
Image Analyst 2018년 9월 26일
Try this
differences = diameters - nominalDiameter;
[closestDiff, indexOfClosest] = min(differences);
  댓글 수: 1
insaf
insaf 2018년 9월 26일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by