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

hybridCarDemo.m
% hcarGUI = hybridCar;
% 
% %Low Speed Animation
% lowspeeds(hcarGUI)
% 
% pause(10)
% %Heavy Acceleration Animation
% heavyAcceleration(hcarGUI)
% 
% pause(10)
% %Highway Cruising
% highwayCruising(hcarGUI)
% 
% pause(10)
% %Braking Animation
% braking(hcarGUI)
% 
% %Syntax for any generic animation
% 
% %The numbers refer to arrow connections between different components
% %Example: 1 represents the arrow from Generator to Battery
% %The cell array "arr" lists, in order, the arrows to
% %be displayed. Vectors in the cell array represent
% %connections which need to be animated
% %simultaneously. For example if you need to show
% %power flow from battery and generator to motor
% %simultaneously
% arr = {5,4,9,3,6,[7 8]}; 
% 
% %The cell array indicating the direction of power flow for the connections
% %specified in the array "arr". The cell arrays "dir" and "arr" whould be of
% %same size.
% dir = {1,1,1,1,1,[1 1]};
% rate = 50; 
% pause(10)
% startAnimation(hcarGUI,arr,dir,rate)
% 
% %Stop Animation
% pause(10)
% stopAnimation;

% addpath \\mathworks\public\kumaragovindhan_Santhanakrishnan\physmod\companymeet
% addpath \\mathworks\public\Kumaragovindhan_Santhanakrishnan\physmod\companymeet\GUI
% addpath \\mathworks\public\Kumaragovindhan_Santhanakrishnan\companymeet\Models
% addpath \\mathworks\public\Kumaragovindhan_Santhanakrishnan\physmod\companymeet\pictures

system_design;
hcar = hybridCar('system_design');
set(hcar,'position',[7.0000    2.4615  188.6000   46.5385])

Contact us