Where is the error?
Afficher commentaires plus anciens
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?
Réponses (2)
Paulo Silva
le 1 Juil 2011
0 votes
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 commentaires
Nuno
le 1 Juil 2011
Paulo Silva
le 1 Juil 2011
So the error comes up before the code you provided turning your question details totally irrelevant?!
Nuno
le 1 Juil 2011
Paulo Silva
le 1 Juil 2011
just to be sure it never changes value
Nuno
le 1 Juil 2011
Nuno
le 4 Juil 2011
0 votes
Catégories
En savoir plus sur Energy Storage dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!