image thumbnail
from How Computer Models Help Break Records? by Coorous Mohtadi
Article on use of MATLAB to build a simplified model of the BLOODHOUND Super Sonic Car.

plotresults.m
% Copyright 2012 - 2012 The MathWorks Inc.
%
indexx = Yout(:,2)>4.5*1609 & Yout(:,2)<5.5*1609;
mMile = indexx*1.4*340;

subplot(211)

plot(Tout,Yout(:,1),Tout,mMile,Tout,ones(size(Tout))*340,'LineWidth',2 )
grid; 
xlabel('Time in Seconds');
ylabel('Speed in m/s');
title('Speed profile versus time and distance traveled');
legend('Speed of BLOODHOUND','Measured Mile', 'Speed of Sound')

subplot(212)
plot(Yout(:,2),Yout(:,1),Yout(:,2), mMile,'LineWidth',2);
grid;
xlabel('Distance in Metres');
ylabel('Speed in m/s');
legend('Speed of BLOODHOUND', 'Measured Mile')

shg

Contact us