ELEC50003-P1-CW/Energy/Matlab Plot +Data/batteryplot.asv
Aadi Desai b7ac9a5f66 Energy Data files
Added data files and MPPT
2021-06-15 17:50:01 +01:00

22 lines
347 B
Plaintext

data = csvread ( "charge.csv");
soc1 = data(:,6);
voltage2 = data(:,2);
data = csvread ( "discharge.csv");
current = data(:,2);
voltage = data(:,1);
x = 0:47771;
power = current.*voltage;
figure;
hold on;
plot(x, voltage, 'x');
xlabel('SOC (%)');
ylabel(' (mV)');
title('Charge cycle of a LiFePO4 battery');
set(gca,'FontSize',25);
hold off;