Files
MatLabPlotter/season/FT23/plot_settings/sidebar_stats.m
2025-08-22 17:39:32 +02:00

22 lines
704 B
Matlab

function [sidebarLabel] = sidebar_stats(stats)
%SIDEBAR_STATS Summary of this function goes here
% Detailed explanation goes here
sidebarLabel = sprintf(...
"Statistics:\nEnergy\n Used: %.2f kWh\n" + ...
" Regen: %.2f kWh\n" + ...
" Total: %.2f kWh\n" + ...
"\nPower\n Peak: %.1f kW\n" + ...
" Peak (mean): %1.f kW\n" + ...
"\nDistance: %.2f km\n" + ...
"\nTopspeed: %.1f km/h\n", ...
stats.energy_used_kwh, ...
stats.energy_regen_kwh, ...
stats.energy_kwh, ...
stats.peakPower_kw, ...
stats.peakPowerMean_kw, ...
stats.distanceTotal_km, ...
stats.maxSpeed_kph ...
);
end