coding for Resis tors

1 comentario

Stephen23
Stephen23 el 3 de Oct. de 2020
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?

Iniciar sesión para comentar.

Respuestas (1)

Ameer Hamza
Ameer Hamza el 3 de Oct. de 2020

0 votos

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

Categorías

Productos

Versión

R2020b

Preguntada:

el 3 de Oct. de 2020

Comentada:

el 3 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by