Tag : matlab

I am new to Matlab – 1 day. I have a script that calls, in a loop, a function that in turn generates a figure from data stored in a file when the file changes. For some reason that I don’t understand, while the script is running, the datatip can only be displayed if you click on the data, but not when you hover. After the script finishes, the datatips are displayed when you hover. I am not allowed to show the code, but it just loads the data and put it on a scatter graph; nothing fancy. How can I make the datatips display when hovering over data and the script is ru..

Read more

I’m trying to create a model solar panel energy and revenue predictor. The only problem I’m having is that the revenue I get is different from the actual revenue, with the error being in this battery section. The battery capacity is 14 kWh, and this section is needed as there are days when the solar panel doesn’t produce the required energy amount (home_energy_use_kWh). I’ve tried multiple ways to solve this, and none of them have worked. If needed, I can post the whole code and the datasheet. Thank you for your..

Read more

I am a beginner in the field of lithium-ion battery system research. the Urban Dynamometer Driving Schedule (UDDS) is a specific driving condition of electric vehicle, which is composed of a series of data of speed versus time. Now, I want to use the UDDS to simulate the dynamic discharging process of a series-connected lithium-ion battery pack. How do I convert this data of speed versus time of UDDS into the corresponding data of battery current versus time? For example, in the link, https://github.com/Zhouzihao914/Equivalent_Circuit_Model_Battery/tree/main/udds, how is the udds_curr.mat obtained from the udd..

Read more

I wrote a function caterpillar that takes arrays of x and y values and plots several circles following the line described by the coordinates. Next I need to write a function that will make the caterpillar move inside a rectangle for an input number of iterations. My problem is that I cannot figure out a simple way to calculate the path it would take. When caterpillar reaches the boundaries of the rectangle it should reflect and go in another direction. I am trying to create the whole trajectory beforehand, put it into an array and then feed to caterpillar. I was thinking of somehow using minus signs as to represent reflections but I don’t know how to update my x and y coordinates appropri..

Read more