The overall electrical resistance of n resistors in parallel is given as:
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:10| Question number:3.10
All Answers
total answers (1)
Req.m
function resis = Req(varargin)
% Calculates the resistance of n resistors in parallel
% Format of call: Req(res1, res2, ... , resn)
% Returns the overall resistance
resis = 0;
for i = 1:nargin
resis = resis + 1/varargin{i};
end
resis = resis ^ -1;
end
need an explanation for this answer? contact us directly to get an explanation for this answer