laboratorio 4 cristhiancenteno

19
29-10-2014 Cristhian Centeno UNIVERSIDAD TECNOLÓGICA LA SALLE

Upload: cristhian-alexander-centeno-leiva

Post on 06-Nov-2015

214 views

Category:

Documents


0 download

DESCRIPTION

Laboratorio 4 de Programacion

TRANSCRIPT

  • 29-10-2014

    Cristhian Centeno UNIVERSIDAD TECNOLGICA LA SALLE

  • 11-15-14 03:33 PM C:\Users\Cristhian Cente...\fcn_trasnf1.m 1 of 1

    syms t s f1 f2vpa(ilaplace(10.4/(s^2+2*s+26)),2) %step+impulsenum=[10.4];den=[1 2 26];y=tf(num,den)ltiview({'step';'impulse'},y)clear

  • 11-15-14 03:34 PM MATLAB Command Window 1 of 1

    >> fcn_trasnf1 ans = 2.1*exp(-1.0*t)*sin(5.0*t) y = 10.4 -------------- s^2 + 2 s + 26 Continuous-time transfer function. >>

  • Step Response

    Time (seconds)

    Ampl

    itude

    0 1 2 3 4 5 60

    0.2

    0.4

    0.6

    0.8

    Impulse Response

    Time (seconds)

    Ampl

    itude

    0 1 2 3 4 5 6 7-1

    -0.5

    0

    0.5

    1

    1.5

    2

  • 11-15-14 03:35 PM C:\Users\Cristhian Cente...\fcn_trasnf2.m 1 of 1

    syms t s f1 f2vpa(ilaplace(3/(s^2+1)*(s^2+9)),2) %step+impulsenum=[3];den1=[1 0 1];den2=[1 0 9];den=conv(den1,den2);y=tf(num,den)ltiview({'step';'impulse'},y)clear

  • 11-15-14 03:36 PM MATLAB Command Window 1 of 1

    >> fcn_trasnf2 ans = 3.0*dirac(t) + 24.0*sin(t) y = 3 ---------------- s^4 + 10 s^2 + 9 Continuous-time transfer function. >>

  • Step Response

    Time (seconds)

    Ampl

    itude

    0 50 100 150 200 250 300 350 400 4500

    0.2

    0.4

    0.6

    0.8

    Impulse Response

    Time (seconds)

    Ampl

    itude

    0 50 100 150 200 250 300 350 400 450-0.5

    0

    0.5

  • 11-15-14 03:36 PM C:\Users\Cristhian Cente...\fcn_trasnf3.m 1 of 1

    syms t s f1 f2vpa(ilaplace(25/(s^2+4*s+25)),2) %step+impulsenum=[25];den=[2 4 25];y=tf(num,den)ltiview({'step';'impulse'},y)clear

  • 11-15-14 03:37 PM MATLAB Command Window 1 of 1

    >> fcn_trasnf3 ans = 5.5*exp(-2.0*t)*sin(4.6*t) y = 25 ---------------- 2 s^2 + 4 s + 25 Continuous-time transfer function. >>

  • Step Response

    Time (seconds)

    Ampl

    itude

    0 1 2 3 4 5 60

    0.5

    1

    1.5

    Impulse Response

    Time (seconds)

    Ampl

    itude

    0 1 2 3 4 5 6-1

    0

    1

    2

    3

  • 11-15-14 03:37 PM C:\Users\Cristhian Cente...\fcn_trasnf4.m 1 of 1

    syms t s f1 f2vpa(ilaplace(1/(s^3+3*s+5)),2) %step+impulsenum=[1];den=[1 0 3 5];y=tf(num,den)ltiview({'step';'impulse'},y)clear

  • 11-15-14 03:38 PM MATLAB Command Window 1 of 1

    >> fcn_trasnf4 ans = exp(t*(0.58 + 2.0*i))*(- 0.071 - 0.062*i) + exp(t*(0.58 - 2.0*i))*(- 0.071 + 0.062*i) + 0.14*exp(-1.2*t) y = 1 ------------- s^3 + 3 s + 5 Continuous-time transfer function. >>

  • Step Response

    Time (seconds)

    Ampl

    itude

    0 20 40 60 80 100 120-10

    -5

    0

    5x 1028

    Impulse Response

    Time (seconds)

    Ampl

    itude

    0 20 40 60 80 100 120-2

    -1

    0

    1x 1029

  • 11-15-14 03:40 PM C:\Users\Cri...\Ecuaciones_segundoGrado.m 1 of 1

    %Ejercicio1num=[1 0 6];den1=[1 0 1];den2=[1 3];den3=[1 2];den4=conv(den1,den2);den=conv(den4,den3);y=tf(num,den)ltiview({'step';'impulse'},y)clear %ejercicio2num=[1 0 4];den1=[1 4 4];den2=[1 0 1];den=conv(den1,den2);y=tf(num,den)ltiview({'step';'impulse'},y)clear %ejercicio3num=[1 0 8];den1=[1 4 8];den2=[1 0 1];den=conv(den1,den2);y=tf(num,den)ltiview({'step';'impulse'},y)clear %Ejercicio4num=[1];den=[1 0 1];y=tf(num,den)ltiview({'step';'impulse'},y)clear

  • 11-15-14 03:40 PM MATLAB Command Window 1 of 1

    >> Ecuaciones_segundoGrado y = s^2 + 6 ----------------------------- s^4 + 5 s^3 + 7 s^2 + 5 s + 6 Continuous-time transfer function. y = s^2 + 4 ----------------------------- s^4 + 4 s^3 + 5 s^2 + 4 s + 4 Continuous-time transfer function. y = s^2 + 8 ----------------------------- s^4 + 4 s^3 + 9 s^2 + 4 s + 8 Continuous-time transfer function. y = 1 ------- s^2 + 1 Continuous-time transfer function. >>

  • Step Response

    Time (seconds)

    Ampl

    itude

    0 20 40 60 80 100 120 1400

    0.5

    1

    1.5

    2

    Impulse Response

    Time (seconds)

    Ampl

    itude

    0 20 40 60 80 100 120 140-1

    -0.5

    0

    0.5

    1

  • Step Response

    Time (seconds)

    Ampl

    itude

    0 10 20 30 40 50 60 70 80 90 1000

    0.5

    1

    1.5

    2

    Impulse Response

    Time (seconds)

    Ampl

    itude

    0 10 20 30 40 50 60 70 80 90 100-1

    -0.5

    0

    0.5

    1

  • Step Response

    Time (seconds)

    Ampl

    itude

    0 20 40 60 80 100 120 140 160 180 2000

    0.5

    1

    1.5

    2

    Impulse Response

    Time (seconds)

    Ampl

    itude

    0 20 40 60 80 100 120 140 160 180 200-1

    -0.5

    0

    0.5

    1

  • Step Response

    Time (seconds)

    Ampl

    itude

    0 200 400 600 800 1000 1200 1400-1

    0

    1

    2

    3

    Impulse Response

    Time (seconds)

    Ampl

    itude

    0 200 400 600 800 1000 1200 1400-2

    -1

    0

    1

    2

    Presentacionfcn_trasnf1MATLAB Command Window1MATLAB1fcn_trasnf2MATLAB Command Window2MATLAB2fcn_trasnf3MATLAB Command Window3MATLAB3fcn_trasnf4MATLAB Command Window4MATLAB4Ecuaciones_segundoGradoMATLAB Command Window5Ec1Ec2ec3EC4