Está en la página 1de 5

Quiz # 2 Sistemas Dinamicos

Presentado por:

Nicolas Gutierrez G.

Alejandra Miranda H.

Presentado a:

Hernan F Arias

Universidad del Quindo

Faculta de Ingeniera

Programa de Ingeniera Electrnica

03/03/2016
Problema # 3

Considerar diferentes configuraciones de masa 1 = 2, 1 > 2 y 1 < 2 y analizar las


respuestas de 1, 1, 2 2. Discuta los resultados obtenidos

Solucin Problema # 3

Para 1 = 2:

Funcin:

function [ dy ] = modelo_mat( t,y )


%UNTITLED2 Summary of this function goes here
% Detailed explanation goes here
dy=zeros(4,1);
dy(1)=y(2);
dy(2)=(-1*(y(1)-y(3))+1*y(1)+2*y(2))/5;
dy(3)=y(4);
dy(4)=(-1*(y(3)-y(1))+1*y(3))/5;
end

Cdigo:

clc
clear all
t=[0 10];
c_i=[0 1 2 3];
[t,y]=ode45(@modelo_mat,t,c_i);
plot (t,y(:,1));
title('Masas iguales');

Grfica:
Para 1 > 2:

Funcin:

function [ dy ] = modelo_mat( t,y )


%UNTITLED2 Summary of this function goes here
% Detailed explanation goes here
dy=zeros(4,1);
dy(1)=y(2);
dy(2)=(-1*(y(1)-y(3))+1*y(1)+2*y(2))/8;
dy(3)=y(4);
dy(4)=(-1*(y(3)-y(1))+1*y(3))/5;
end

Cdigo:

clc
clear all
t=[0 10];
c_i=[0 1 2 3];
[t,y]=ode45(@modelo_mat,t,c_i);
plot (t,y(:,1));
title('m1>m2');

Grfica:
Para 1 < 2:

Funcin:

function [ dy ] = modelo_mat( t,y )


%UNTITLED2 Summary of this function goes here
% Detailed explanation goes here
dy=zeros(4,1);
dy(1)=y(2);
dy(2)=(-1*(y(1)-y(3))+1*y(1)+2*y(2))/5;
dy(3)=y(4);
dy(4)=(-1*(y(3)-y(1))+1*y(3))/8;
end

Cdigo:

clc
clear all
t=[0 10];
c_i=[0 1 2 3];
[t,y]=ode45(@modelo_mat,t,c_i);
plot (t,y(:,1));
title('m1<m2');

Grfica:

También podría gustarte