Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
I = 0.09; %90mA current
R = 100; %100 Ohm resistor
V_correct = 9; %9V voltage
assert(isequal(OhmsLaw(I,R),V_correct))
V =
9
|
2 | Pass |
I = 0.012; %12mA current
R = 1000; %1kOhm resistor
V_correct = 12; %12V voltage
assert(isequal(OhmsLaw(I,R),V_correct))
V =
12
|
337 Solvers
Create a vector whose elements depend on the previous element
391 Solvers
376 Solvers
360 Solvers
Find my daddy long leg (No 's')
632 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!