coding for Resis tors
Ältere Kommentare anzeigen
1 Kommentar
Stephen23
am 3 Okt. 2020
"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?
Antworten (1)
Ameer Hamza
am 3 Okt. 2020
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
Kategorien
Mehr zu Power and Energy Systems finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!