Code covered by the BSD License  

Highlights from
SAE Paper Demo: Model-Based Design of Hybrid Electric Vehicles

image thumbnail

SAE Paper Demo: Model-Based Design of Hybrid Electric Vehicles

by

 

07 Nov 2010 (Updated )

Demo files to accompany the paper by the same name

CreatePlots.m
load speeds.mat;
subplot(2,1,1);
plot(speed_avg(1,:), speed_avg(2,:), 'b');
hold on
plot(speed_detail(1,:), speed_detail(2,:), 'r');
legend('Average Model', 'Detailed Model');
ylabel('Speed (mph)');
xlabel('Time (s)');
title('Comparison between speeds for average and detailed models');

load mpg.mat;
subplot(2,1,2);
plot(mpg_hev_avg(1,:), mpg_hev_avg(2,:), 'b');
hold on
plot(mpg_hev_detail(1,:), mpg_hev_detail(2,:), 'r');
legend('Average Model', 'Detailed Model');
ylabel('Miles per gallon (mpg)');
xlabel('Time (s)');
title('Comparison between mpg for average and detailed models');

Contact us