You are on page 1of 1

11/05/22 07:21 AM C:\Users\usuario\Documen...\motorDC2.

m 1 of 1

clear all
close all
clc

R = 0.4;
L = 100e-6;
Kt = 10;
Kb = 10;
J = 0.5;
B = 0.2;

num1 = Kt;
den1 = [L R];
num2 = 1;
den2 = [J B 0];
num3 = [Kb 0];
den3 = 1;
num5 = [1 0];
den5 = 1;
sys1 = tf(num1,den1)
sys2 = tf(num2,den2)
sys3 = tf(num3,den3)
sys4 = series(sys1,sys2);
sysT = feedback(sys4,sys3)
sys5 = tf(num5,den5)
sysTT = series(sysT,sys5)

subplot(121)
step(sysT)
grid on
xlabel('tiempo')
ylabel('posicion')
subplot(122)
step(sysTT)
grid on
xlabel('tiempo')
ylabel('velocidad')

You might also like