Info

This question is closed. Reopen it to edit or answer.

Simulating a battery power level

1 view (last 30 days)
Joe Bird
Joe Bird on 5 Oct 2015
Closed: Sabin on 4 Jan 2023
I'm using a patch to simulate a vehicle moving around a 2D environment and I would like to give it a battery.
Is there a way to create a counter that counts down from 100(%) when the patch is moving (battery is draining) and counts up (charging) when the patch is at the specified charging point?
It would be great if the timer could count up/down at variable rates.

Answers (0)

Communities

More Answers in the  Power Electronics Control

Community Treasure Hunt

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

Start Hunting!