- g should be a logic value
- SOC is a vector
- SOC changes very quickly
- Put the SOC value in a scope and see if it's what you expect
- Put the g value in a scope and see if it's what you expect
Where is the error?
2 ビュー (過去 30 日間)
古いコメントを表示
I need that, after i know the value of SOC have:
if SOC > 0.95
g=0;
else
g=1;
end
In other words, if SOC>0.95 the battery don´t charged else the battery charged, but in this case the battery charged always. What is my error?
0 件のコメント
回答 (2 件)
Paulo Silva
2011 年 7 月 1 日
Just guessing:
5 件のコメント
参考
カテゴリ
Help Center および File Exchange で Energy Storage についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!