How to get daily average output for a week
4 次查看(过去 30 天)
显示 更早的评论
Hi,
I have coded the average daily output load demand of an EV for one day. I got the graph of load demand for whole 1440 minutes(i.e. one whole day). However, I am trying to use this code in aother loop to get an output load demand for a week.
I am unable to get any output yet. Was wondering if anyone can help me out here.
Thanks in advance.
Afnan Rahman
3 个评论
jonas
2020-7-27
Cannot test the code atm, but here is an idea.
If the loop works for several days, then you can just concatenate the output at the end of the second loop (where you plot). I would either append or save results for separate days in a cell array. To save as cell array
Results_all{day} = power_Mw_b
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!