relátorios sinais e sistemas

23
INSTITUTO FEDERAL DE GOIÁS-IFG Campus Goiânia Curso Bacharelado em Engenharia Elétrica Relatórios Conjunto de Relatórios relacionados ao Conteúdo de Sinais e Sistemas Lineares Discente: Afonso Leite de Carvalho Filho Orientador: Prof. João Batista Goiânia, GO junho de 2015

Upload: afonso-leite

Post on 07-Sep-2015

225 views

Category:

Documents


2 download

DESCRIPTION

Relátorio

TRANSCRIPT

  • INSTITUTO FEDERAL DE GOIS-IFG Campus Goinia

    Curso Bacharelado em Engenharia Eltrica

    Relatrios

    Conjunto de Relatrios relacionados ao Contedo de Sinais e Sistemas Lineares

    Discente:

    Afonso Leite de Carvalho Filho

    Orientador: Prof. Joo Batista

    Goinia, GO

    junho de 2015

  • Conjunto de Relatrios relacionados ao Contedo de Sinais e Sistemas Lineares

    Discente:

    Afonso Leite de Carvalho Filho

    Relatrio do curso de Bacharelado em Engenharia Eltrica do Instituto Federal de Gois, Campus Goinia, apresentado como forma de avaliao da disciplina de Sinais e Sistemas, sob orientao do Prof. Joo Batista.

    Goinia, GO Junho de 2015

  • Procedimento Experimental

    Relatrio 01

    Exerccio 01:

    t = -2:0.1:2;

    y = 30*exp(-3*t);

    plot(t,y);

    grid,title('EXERCCIO 01');

    Exerccio 02:

    t = -2:0.1:2;

    y = 30*exp(3*t);

    plot(t,y);

    grid,title('EXERCCIO 02');

  • Exerccio 03:

    n = -6:1:6;

    y = 3*exp(-0.3*n);

    stem (n,y);

    title('EXERCCIO 03');

    Exerccio 04:

    n = 0:1:20;

    y = sin(5*n);

    stem (n,y);

    title('EXERCCIO 04');

  • Exerccio 05:

    n = 0:1:20;

    y = sin(6*n);

    stem (n,y);

    title('EXERCCIO 05');

    Exerccio 06:

    n = 0:1:1;

    y = 60*sin(18*pi*t).*(exp(-6*t));

    stem (n,y);

    title('EXERCCIO 06');

  • Exerccio 07:

    n = -10:20;

    u = [zeros(1,abs(n(1)))ones(1,n(end)+1)];

    stem(n,u)

    Exerccio 08:

    n = -10:1:10;

    u = [zeros(1,abs(n(1)))ones(1,n(end)+1)];

    stem (n,y);

    title('EXERCCIO 07');

    Exerccio 09:

    n=-10:10;

    for cont=1:numel(n)

    if n(cont)==1

    xn(cont)=n(cont);

    elseif n(cont)==-1

    xn(cont)=n(cont);

    elseif n(cont)==0

  • xn(cont)=n(cont);

    elseif abs(n(cont))>1

    xn(cont)=0;

    end

    end

    stem(n,xn); xlabel('n'); ylabel('x(n)');

    title('GRFICO DE x[n]');

    grid on

    pause(4)

    n=-10:10;

    for cont=1:numel(n)

    if n(cont)==1

    xmn(cont)=-n(cont);

    elseif n(cont)==-1

    xmn(cont)=-n(cont);

    elseif n(cont)==0

    xmn(cont)=n(cont);

    elseif abs(n(cont))>1

  • xmn(cont)=0;

    end

    end

    stem(n,xmn);xlabel('n'); ylabel('x(-n)');

    title('GRFICO DE x[-n]');

    grid on

    pause(4)

    yn=xn+xmn;

    stem(n,yn);xlabel('n'); ylabel('y(n)');

    title('GRFICO DE y[n]=x[n]+x[-n]');

    grid on

    pause(6)

    close

  • Exerccio 10:

    n = -10:1:10;

    y = 3*exp(-0.3*n);

    y=y-3;

    plot(n,y,'r')

    xlabel('Tempo')

    ylabel('Amplitude')

    grid

    title('SINAL CONTINUO NO TEMPO')

    figure

    stem(n,y,'g')

    xlabel('Tempo')

    ylabel('Amplitude')

    grid

    title('SINAL DISCRETO NO TEMPO')

  • Exerccio 11:

    n = 1:100;

    y = 3*exp(-0.3*n);

    grid

    plot(2*n-3,y)

    xlabel('2n-3')

    ylabel('y(2n-3)')

    title('EXERCCIO 11');

  • grid

    Relatrio 02

    Exerccio 01:

    Sinal 01:

    x[n] = u[n] u[n 4];

    x = [ 1 1 1 1 0]

    t = 0:length (x)-1;

    x = stem(t,x);

    title('GRFICO DO SINAL 01');

    Sinal 02:

    h = [ 0 1 2 3 0]

  • t = 0:length (h)-1;

    h = stem(t,h);

    title('GRFICO DO SINAL 02');

    Covoluo:

    y = conv(x,h);

    y= [0 1 3 6 6 5 3 0 0]

    t = 0:length (y)-1;

    h = stem(t,y);

    title('GRFICO DA COVOLUO');

    Exerccio 02:

    n=-5:5;

    h= (n);

    x = ((0.5).^n) .*(n);

  • y=conv(x,h)

    stem(y,'r*')

    title('EXERCCIO 02');

    Exerccio 03:

    n=-15:15;

    h = ((0.9).^n) .* ((n-2) - (n-13));

    x = 2* (n+2)-2* (n-12);

    y = conv(x,h);

    stem(y,'k*')

    title('EXERCCIO 03');

  • Relatrio 03

    Exerccio 01:

    R = 8; C = 0.2e-6;

    tau = 1/R*C;

    f = 0: 1000 : 300000;

    w = 2*pi*f;

    H = (1j*w*R*C)./(1 + 1j*w*R*C);

    Hmod = abs(H);

    Hfase = angle(H);

    HdB = 20*log10(Hmod);

    wc = tau;

    fc = wc / 2*pi;

    clf;

    plot(f,HdB);

    title('RESPOSTA EM FREQUNCIA 01');

    grid;

    hold on;

    plot(fc,-3,'*r');

    text(fc,-3.5,'fc');

    xlabel('freqncia (Hz)');

    ylabel('Mdulo (dB)');

    figure;

    plot(f,Hfase);

    title('RESPOSTA EM FREQUNCIA 02');

    grid;

    xlabel('freqncia (Hz)');

    ylabel('Fase (rad)');

  • Exerccio 02:

    R=8; C=0.2e-6; L = 1e-3;

    f=0:1000:300000;

    w = 2*pi*f;

    H = R./(R + 1j*(w*L - 1./(w*C)));

    Hmod = abs(H);

    Hfase = angle(H);

  • HdB=20*log10(Hmod);

    w0 = 1/(sqrt(L*C));

    fc = w0 / (2*pi);

    clf;

    plot(f,HdB);

    title('RESPOSTA EM FREQUNCIA 01');

    grid;

    hold on;

    plot (fc,-3,'*r');

    text (fc,-3.5,'fc');

    xlabel('frequncia (Hz)');

    ylabel ('Mdulo (dB)');

    figure; plot (f,Hfase);

    title('RESPOSTA EM FREQUNCIA 02');

    grid;

    xlabel('frequncia (Hz)');

    ylabel ('Fase (rad)');

  • Exerccio 03:

    R=8; C=0.2e-6; L = 1e-3;

    f=0:1000:300000;

    w = 2*pi*f;

    H = 1j*(w*L-1./(w*C))./(R + 1j*(w*L - 1./(w*C)));

    Hmod = abs(H);

    Hfase = angle(H);

    HdB=20*log10(Hmod);

    w0 = 1/(sqrt(L*C));

    fc = w0 / (2*pi);

    clf; plot(f,HdB);

    title('RESPOSTA EM FREQUNCIA 01');

    grid;

    hold on;

    plot (fc,-3,'*r');

    text (fc,-3.5,'fc');

    xlabel('frequncia (Hz)');

    ylabel ('Mdulo (dB)');

  • figure;

    plot (f,Hfase);

    title('RESPOSTA EM FREQUNCIA 02');

    grid;

    xlabel('frequncia (Hz)');

    ylabel ('Fase (rad)');

  • Relatrio 04

    Exerccio 01:

    clear all; clc; close all;

    num = [5 7];

    den = [1 4 -4];

    H = tf(num,den);

    figure (1)

    rlocus(H)

    w = [0:0.1:20];

    Hrf = freqresp(H,w);

    modHrf = abs(squeeze(Hrf));

    figure(2);

    plot(w,modHrf);

    title('Magnitude da Resposta em Frequncia');

    xlabel('Frequencia');

    ylabel('Amplitude'); grid

    figure(3)

    step(H,50);

  • Exerccio 02:

    clear all; close all; clc;

    display('Selecione: 1. Entrada dos coeficientes numerador e denominador')

    display('2. Entrada dos zeros, polos e ganho')

    Opc = input('');

    if Opc == 2

    display('Digite os zeros depois polos e depois ganho, entre colchetes. ex [1] ');

    z = input('zeros: ');

    p = input('polos: ');

    k = input('ganho: ');

    [num,den] = zp2tf(z,p,k);

    end

    if Opc == 1

    display('Digite o numerador depois o denomidador, entre colchetes. ex: [1 0 0]

    = s')

    num = input('num:');

    den = input('den:');

  • elseif Opc ~= 1 || Opc ~= 2

    display('ENTRADA INVALIDA');

    end

    H = tf(num,den);

    figure(1)

    subplot(2,2,1);

    title('Lugar das raizes');

    rlocus(H)

    w = [0:0.1:20];

    Hrf = freqresp(H,w);

    modHrf = abs(squeeze(Hrf));

    subplot(2,2,2);

    plot(w,modHrf);

    title('Magnitude da Resposta em Frequencia');

    xlabel('Frequencia');

    ylabel('Amplitude');

    grid;

    subplot(2,2,3);

    step(H,50);

    [z,p,k] = tf2zp(num,den);

    display ('z = zeros; p = polos; k = ganho; H = Funo de Tranferncia');

    Aplicando :

    zeros = 3

    polos = 3

    ganho = 4

  • Os seguintes grficos so plotados: