フィルターのクリア

soc estimation for fully charged Electric vehicles

3 ビュー (過去 30 日間)
Suganthi D
Suganthi D 2022 年 7 月 6 日
編集済み: Sayan 2023 年 9 月 6 日
SOC(i) = SOC(i −1) + x(i −1). pch / enEV .
pch=6.6; % charging/discharging power
enEV=30; % battery capacity
i dont know how to write this equation in code..
could you please help me how to write this equation in matlab code

回答 (1 件)

Sayan
Sayan 2023 年 9 月 6 日
編集済み: Sayan 2023 年 9 月 6 日
I understand from your query that it is required to write the equations above in MATLAB to estimate the SOC of battery for fully charged electric vehicles. The following code snippet can be used to do the same.
%declare the constant variables before using them in code
pch=6.6;
enEv=30;
%pre-allocate the SOC vector and x vector size after determination of
%required data points say n
SOC=zeros(n,1);
x=zeros(n,1);
Now code the algorithm you want to implement for determination of SOC in code and write the following equation.
for i=2:n
SOC(i)=SOC(i-1)+x(i-1).pch/enEV;
end
Further information of SOC estimation can be found in the following documentation.
Hope this helps in answering the query.

カテゴリ

Help Center および File ExchangeState-Space Control Design and Estimation についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by