Incompatible array sizes error in hppcTest
Hello team,
I am using the Simscape battery toolbox to estimate ECM Parameters from HPPC test data following the similar example provided.
When I load my hppc data, and run hppcTest, I get the error Arrays have incompatible sizes for this operation.
The data has many pulses. However, when I choose only data for 1 pulse, it works fine.
Here is my code snippet –
“`
% Load the CSV file
data = readtable(‘240419_1C_Disharge_HPPC_25.csv’);
% Create simple table with renamed columns
hppcData = table(data.Ch7_Time_Second_, data.Ch7_Voltage_V_, data.Ch7_Current_A_, …
‘VariableNames’, {‘Time’, ‘Voltage’, ‘Current’});
% Display to verify
disp(‘Table created:’);
disp(head(hppcData));
disp(‘Size of table:’);
disp(size(hppcData));
% Create hppcTest object
hppcExp25degC = hppcTest(hppcData, …
‘TimeVariable’, ‘Time’, …
‘VoltageVariable’, ‘Voltage’, …
‘CurrentVariable’, ‘Current’, …
‘Capacity’, 50, …
‘InitialSOC’, 1.0);
“`Hello team,
I am using the Simscape battery toolbox to estimate ECM Parameters from HPPC test data following the similar example provided.
When I load my hppc data, and run hppcTest, I get the error Arrays have incompatible sizes for this operation.
The data has many pulses. However, when I choose only data for 1 pulse, it works fine.
Here is my code snippet –
“`
% Load the CSV file
data = readtable(‘240419_1C_Disharge_HPPC_25.csv’);
% Create simple table with renamed columns
hppcData = table(data.Ch7_Time_Second_, data.Ch7_Voltage_V_, data.Ch7_Current_A_, …
‘VariableNames’, {‘Time’, ‘Voltage’, ‘Current’});
% Display to verify
disp(‘Table created:’);
disp(head(hppcData));
disp(‘Size of table:’);
disp(size(hppcData));
% Create hppcTest object
hppcExp25degC = hppcTest(hppcData, …
‘TimeVariable’, ‘Time’, …
‘VoltageVariable’, ‘Voltage’, …
‘CurrentVariable’, ‘Current’, …
‘Capacity’, 50, …
‘InitialSOC’, 1.0);
“` Hello team,
I am using the Simscape battery toolbox to estimate ECM Parameters from HPPC test data following the similar example provided.
When I load my hppc data, and run hppcTest, I get the error Arrays have incompatible sizes for this operation.
The data has many pulses. However, when I choose only data for 1 pulse, it works fine.
Here is my code snippet –
“`
% Load the CSV file
data = readtable(‘240419_1C_Disharge_HPPC_25.csv’);
% Create simple table with renamed columns
hppcData = table(data.Ch7_Time_Second_, data.Ch7_Voltage_V_, data.Ch7_Current_A_, …
‘VariableNames’, {‘Time’, ‘Voltage’, ‘Current’});
% Display to verify
disp(‘Table created:’);
disp(head(hppcData));
disp(‘Size of table:’);
disp(size(hppcData));
% Create hppcTest object
hppcExp25degC = hppcTest(hppcData, …
‘TimeVariable’, ‘Time’, …
‘VoltageVariable’, ‘Voltage’, …
‘CurrentVariable’, ‘Current’, …
‘Capacity’, 50, …
‘InitialSOC’, 1.0);
“` simscape, hppc, ecm MATLAB Answers — New Questions









