Problem 60798. Battery Life Estimation for a Device
A battery-powered device consumes a constant current while operating. The estimated battery life (T) can be calculated using the formula:
where:
- Q is the battery capacity (in ampere-hours, Ah)
- I is the device's current consumption (in amperes, A)
- T is the estimated battery life (in hours)
Write a function to estimate how long a battery will last given its capacity and the device’s current consumption.
Solution Stats
Problem Comments
-
1 Comment
Pradheepa
on 21 Jan 2026 at 3:25
I love this series.
It helps one revise the Battery management basics!
Solution Comments
Show comments
Problem Recent Solvers308
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!