Problem 60795. Ohm’s Law - Calculate Resistance
Ohm’s Law states that resistance R can be calculated as:R=V/I
where:
- V is the voltage (in volts)
- I is the current (in amperes)
- R is the resistance (in ohms)
Write a function to compute resistance given voltage and current.
Solution Stats
Problem Comments
-
1 Comment
William
on 16 Feb 2025 at 13:18
This formula is incorrect. It calculates power rather than resistancee.
Solution Comments
Show commentsGroup

MATLAB Onramp Practice
- 15 Problems
- 4527 Finishers
- Times 2 - START HERE
- Calculate Amount of Cake Frosting
- Convert from Fahrenheit to Celsius
- Find the Oldest Person in a Room
- Verify Law of Large Numbers
- Solve a System of Linear Equations
- Calculate a Damped Sinusoid
- Plot Damped Sinusoid
- Calculate BMI
- Crop an Image
- Find the Best Hotels
- Find MPG of Lightest Cars
- Calculate Inner Product
- Rescale Scores
- Longest run of consecutive numbers
Problem Recent Solvers122
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!