Está en la página 1de 5

UNIVERSIDAD NACIONAL DE LOJA

F.E.I.R.N.N.R.
MAESTRÍA EN ELECTRICIDAD

UNIVERSIDAD NACIONAL DE LOJA


MAESTRÍA EN ELECTRICIDAD .................................................................................................... 1
ACCIONAMIENTO ELÉCTRICO.................................................................................................... 1
EVALUANDO LAS FUNCIONES DE TRANSFERENCIA .................................................................. 2
DISCRETIZACIÓN DEL SISTEMA.................................................................................................. 3
DISCRETIZCION SISTEMAS MIMO.............................................................................................. 4
MAESTRÍA EN ELECTRICIDAD
ACCIONAMIENTO ELÉCTRICO
ALUMNO LUIS GABRIEL ROJAS VIVANCO

GRÁFICA EN SIMULINK

%18-12-2021

%%ESTRUCTURANDO LAS FUNCIONES DE TRANSFERENCIA (TF) DEL MODELO


clc;clear;
[nun,den]=linmod('lecciongr2'); %Extrayendo el modelo SISO (Modelo continuo lineal)
[A,B,C,D]=linmod('lecciongr2'); %Extrayendo el modelo continuo líneal por medio de sus
matrices de espacio
funcion=tf(nun,den) %Función de transferencia considerando una sola entrada y una
salida
sys=ss(A,B,C,D);
funcion2=tf(sys) % Función de transferencia considerando matrices de espacio de estados
(SISO-MIMO)

funcion =

2 s^3 + 6.246e-33 s^2 + 8 s - 1.373e-32


UNIVERSIDAD NACIONAL DE LOJA
F.E.I.R.N.N.R.
MAESTRÍA EN ELECTRICIDAD

-------------------------------------------------
s^6 + 2 s^5 + 14 s^4 + 30 s^3 + 42 s^2 + 94 s + 8

Continuous-time transfer function.

funcion2 =

From input 1 to output:


2 s^3 + 8 s
-------------------------------------------------
s^6 + 2 s^5 + 14 s^4 + 30 s^3 + 42 s^2 + 94 s + 8

From input 2 to output:


s^4 + 2 s^3 + 4 s^2 + 8 s + 3.093e-32
-------------------------------------------------
s^6 + 2 s^5 + 14 s^4 + 30 s^3 + 42 s^2 + 94 s + 8

Continuous-time transfer function.

EVALUANDO LAS FUNCIONES DE TRANSFERENCIA


subplot (2,1,1)
step (funcion) %Evaluando la función por medio de una entrada escalón
title('Entrada Función Escalón')
grid on;% Cuadricula
xlabel('Tiempo');
ylabel('Valor entrada escalón')
subplot (2,1,2)
impulse(funcion);%Evaluando la función por mdeio de una entrada impulso
title('Entrada funcion impulso');
grid on;
xlabel('Tiempo');
ylabel('Valor de entrada impulso');
UNIVERSIDAD NACIONAL DE LOJA
F.E.I.R.N.N.R.
MAESTRÍA EN ELECTRICIDAD

DISCRETIZACIÓN DEL SISTEMA


%Discretización del modelo
funciond=c2d(funcion,0.1) %Discretizando la función de transferencia del modelo
step(funcion,'-',funciond,'r--'); % Comparando con entrada escalón continuas -
discretas
title('Entrada funcion escalon');
grid on;
xlabel('Tiempo');
ylabel('Valor de escalon');

funciond =

0.0003157 z^5 + 0.0002617 z^4 - 0.002321 z^3 + 0.00238 z^2 - 0.0003505 z

- 0.0002857

-------------------------------------------------------------------------

z^6 - 5.679 z^5 + 13.56 z^4 - 17.44 z^3 + 12.71 z^2 - 4.981 z + 0.8187

Sample time: 0.1 seconds


Discrete-time transfer function.
UNIVERSIDAD NACIONAL DE LOJA
F.E.I.R.N.N.R.
MAESTRÍA EN ELECTRICIDAD

DISCRETIZCION SISTEMAS MIMO


[A,B,C,D]=linmod('lecciongr2');
sys=ss(A,B,C,D);
funcion2=tf(sys) %Funcipon de transferencia
funciond2=c2d(funcion2,0.001,'foh');
step(funcion2,'-',funciond2,'g--');
title('Entrada funcion escalon');
grid on;
xlabel('Tiempo');
ylabel('Valor de escalon 1');
datacursormode on

funcion2 =

From input 1 to output:


2 s^3 + 8 s
-------------------------------------------------
s^6 + 2 s^5 + 14 s^4 + 30 s^3 + 42 s^2 + 94 s + 8

From input 2 to output:


s^4 + 2 s^3 + 4 s^2 + 8 s + 3.093e-32
-------------------------------------------------
s^6 + 2 s^5 + 14 s^4 + 30 s^3 + 42 s^2 + 94 s + 8

Continuous-time transfer function.


UNIVERSIDAD NACIONAL DE LOJA
F.E.I.R.N.N.R.
MAESTRÍA EN ELECTRICIDAD

Published with MATLAB® R2021a

También podría gustarte