댓글 수: 1

Stephen23
Stephen23 2020년 10월 3일
Original question by Maddison Webb on 2020-10-03 retrieved from Google Cache:
"How to calculate if resistor is in tolerance"
How can I design a function that will provide a logical output if a measured resistor is within a specified manufacturer tolerance?

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

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 10월 3일

0 개 추천

Something like this
function tf = isWithinTolerance(specified_resistance, measured_resistance, tolerance)
lb = specified_resistance*(1-tolerance);
ub = specified_resistance*(1+tolerance);
if (lb<measured_resistance) && (measured_resistance<ub)
tf = true;
else
tf = false
end
end

카테고리

도움말 센터File Exchange에서 Power and Energy Systems에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2020년 10월 3일

댓글:

2020년 10월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by