Where is the error?
이전 댓글 표시
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?
답변 (2개)
Paulo Silva
2011년 7월 1일
0 개 추천
Just guessing:
- 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
댓글 수: 5
Nuno
2011년 7월 1일
Paulo Silva
2011년 7월 1일
So the error comes up before the code you provided turning your question details totally irrelevant?!
Nuno
2011년 7월 1일
Paulo Silva
2011년 7월 1일
just to be sure it never changes value
Nuno
2011년 7월 1일
카테고리
도움말 센터 및 File Exchange에서 Energy Storage에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!