Simulink 5: Fundamentos

by

 

15 Jan 2003 (Updated )

Companion Software for "Simulink 5: Fundamentos".

y=fbungie_solver (Massa,CoefElast,CoefTracao,StartTime,StopTime)
% fbungie_solver (Massa,CoefElast,CoefTracao,StartTime,StopTime)
% Exemplo: fbungie_solver (60,10,5,0,100)
function y=fbungie_solver (Massa,CoefElast,CoefTracao,StartTime,StopTime)
% Chama solver
[t,y]=ode45('fbungie',[StartTime StopTime],[1;0],[],...
             Massa,CoefElast,CoefTracao); 
subplot(2,1,1)
plot(t,y(:,1))
grid
title('Deslocamento');
subplot(2,1,2)
plot(t,y(:,2),'g');
grid
title('Velocidade');

Contact us