Está en la página 1de 5

EXAMEN DE SISTEMAS DE CONTROL MECANICO

ARAGON YAJAIRA

CODIGO DE MATLAB

% EXAMEN DE CONTROL
%EJERCICIO 2
t=3;
yf=0:0.1:50;
a=9.81;
%yf=yo+vo*t+0.5*(a*t^2)
vo=((yf)-0.5*(a*t^2))/t;

fig1 = figure;
plot(yf, vo,'m',LineWidth=1)
title('Vo vs yf')
ylabel('Vo [m/s]')
xlabel('yf [m]')
grid on; box on;
legend({'vo=((yf)-0.5*(a*t^2))/t'})

CODIGO DE MATLAB
% EXAMEN DE CONTROL
%EJERCICIO 2
Vo=25; % [m/s]
a=-5; % [m/s^2]
S=0:0.1:100; %desplazamiento
% Encontrar el tiempo y la distancia antes de que el auto se detenga.
%sabemos que el auto se detiene por lo tanto:
Vf=0;%[m/s]
%usando la ecuacion
%(Vf^2 - Vo^2 = 2*a*s) (donde s es el desplazamiento)
%despejando la velocidad inicial en funcion de s ontenemos
Vo=sqrt((Vf^2)-2*a*S);
fig1 = figure;
plot(S, Vo,'m',LineWidth=1)
title('Vo vs S')
ylabel('Vo [m]')
xlabel('S [s]')
grid on; box on;
legend({'Vo=sqrt((Vf^2)-2*a*S)'})

%ARAGON
%EJERCICIO 3
clc,clear
% Datos
m=100;
R=1;
Mo=0:0.1:20;

%podemos graficar la aceleracion angular en funcion de M(PAR):


tetha_doble_dot=(2*Mo)/(m*R^2);
fig1 = figure;
plot(Mo, tetha_doble_dot,'m',LineWidth=1)
title('Aceleracion angular VS Mo')
legend ('tetha_doble_dot=(2*Mo)/(m*R^2)')
ylabel('tetha_doble_do [rad/s^2]')
xlabel('M [N-m] ')
grid on; box on;
%Si pongo un Mo=10 N-m como en el ejercicio obtenemos una aceleracion angular
igual a :

CODIGO DE MATLAB
CODIGO DE MATLAB
%ARAGON
%EJERCICIO 4
clc,clear
% Datos
ma=10;
L=3;
g=9.81;
I=ma*L^2;
Mo=5000;
tetha=0:0.1:50;
%(L*ma*g)tetha + (ma*L^2)tetha_doble_dot=Mo
%podemos graficar la aceleracion angular en funcion del desplazamiento
%angular si despejamos la aceleracion angular obtenemos:
tetha_doble_dot=(Mo-(L*ma*g)*tetha)/I;
fig1 = figure;
plot(tetha, tetha_doble_dot,'m',LineWidth=1)
title('Aceleracion angular VS Desplazamiento angular')
legend ('tetha_doble_dot=(Mo-(L*ma*g)tetha)/(ma*L^2)')
ylabel('tetha_doble_do [rad/s^2]')
xlabel('tetha ')

También podría gustarte