im implementing (single capacitor 4 cells) active cel balancing but the soc of cells are not equal, what is the error in the logic of this code? function [s1,s2,s3,s4,s5,s6,
2 ビュー (過去 30 日間)
古いコメントを表示
im implementing (single capacitor 4 cells) active cel balancing but the soc of cells are not equal, what is the error in the logic of this code?
function [s1,s2,s3,s4,s5,s6,s7,s8] = fcn(SOC1,SOC2,SOC3,SOC4,P1,P2)
if SOC2<SOC1
s1=P1;
s2=P1;
s3=P2;
s4=P2;
elseif SOC1<SOC2
s1=P1;
s2=P1;
s3=P2;
s4=P2;
else
s1=0;
s2=0;
s3=0;
s4=0;
end
end![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1658726/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1658726/image.png)
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で RF Blockset Models for Transceivers についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!