coding for Resis tors
古いコメントを表示
1 件のコメント
Stephen23
2020 年 10 月 3 日
"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
2020 年 10 月 3 日
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 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!