Outline
Complete the resistors function to compute the combinedresistance of five resistors in parallel.
The combined resistance R of five resistorsR1, …, R5 in parallel is given by

Input variables: r1, r2, r3, r4, r5 – scalar values containingthe resistance of each component in the parallel circuit.
Output variables: R – a scalar containing the combinedresistance.
Function Template
function R = resistors( r1, r2, r3, r4, r5 ) %Calculate R hereend
Test Example
Once you have finished writing the function in MATLAB, youshould save it and then test it, by entering one of the commandsbelow (depending on the number of resistors you had in yourquestion)
PayPal Gateway not configured
PayPal Gateway not configured