Problem 44871. Calculate Resistance

Solution 3060028

Submitted on 4 Oct 2020 by Anthony Errico
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
p=1;l=1;A=2; correct = 0.5; assert(isequal(Resistance(p,l,A),correct))

2   Pass
p=0.5;l=10;A=2; correct = 2.5; assert(isequal(Resistance (p,l,A),correct))

Suggested Problems

More from this Author41

Community Treasure Hunt

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

Start Hunting!