Problem 60807. Estimating the Range of an Electric Vehicle (EV)
In Electric Vehicles (EVs), the driving range is the estimated distance a vehicle can travel on a fully charged battery. The range (R) can be calculated using the formula:
where:
is the total battery capacity (in kilowatt-hours, kWh)
is the efficiency factor of the EV drivetrain (as a decimal, e.g., 0.9 for 90% efficiency)
is the vehicle’s energy consumption per kilometer (in kWh/km)
- R is the estimated driving range (in kilometers)
Write a function to estimate the driving range of an EV given the battery capacity, efficiency, and energy consumption per kilometer.
Solution Stats
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 Solvers11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!