·

Engenharia Elétrica ·

Sinais e Sistemas

Send your question to AI and receive an answer instantly

Ask Question

Preview text

Sinais e Sistemas Prof Eng Viviana R Zurro MSc M9 SS Roteiro 1 Atividade Prática ORIENTAÇÕES O trabalho deverá ser entregue em modelos em arquivo PDF O arquivo deverá ser entregue no ícone TRABALHOS no lado esquerdo da tela Uma vez enviados os arquivos o link não será reaberto para entrega de novos trabalhos Não haverá prorrogação de prazo de entrega Baixar o aplicativo httpswwwscilaborg Para todas as atividades práticas Esta atividade depende do seu RU Para realizar esta atividade leia atentamente todo material principalmente as apostilas disponível na Aula 13 Atenção Coloque no relatório todo o desenvolvimento matemático prévio ao desenvolvimento do algoritmo sempre que solicitado Se não houver desenvolvimento matemático será descontada nota Inclua imagens de todos os procedimentos solicitados Nas imagens não se esqueça de colocar nomes nos eixos xlabel e ylabel Será descontada nota Para facilitar o desenvolvimento da atividade use o aplicativo SciNotes que permite gravar sua atividade como um programa página 7 da Apostila 1 Coloque o algoritmo completo no relatório com o detalhe explicando cada uma das linhas Será descontada nota Exemplo RU 1234567 RU1 RU2 RU3 RU4 RU5 RU6 RU7 1 2 3 4 5 6 7 Se se RU tiver 6 números ou menos preencha com zeros os últimos números exemplo RU 12345 equivale a 1234500 OBJETIVO Aprender a usar o ambiente matemático e realizar operações básicas com sinais MATERIAL UTILIZADO Ambiente matemático Scilab Apostilas 1 2 e 3 disponíveis nas Aulas 8 9 e 10 Comando cshift se necessário ATIVIDADE 1 Tempo contínuo 𝑎1 𝑅𝑈3 3 se 𝑎1 0 adotar 𝑎1 1 Sinais e Sistemas Prof Eng Viviana R Zurro MSc M9 SS Roteiro 2 𝑏1 𝑅𝑈4 2 se 𝑏1 0 adotar 𝑏1 2 𝑐1 𝑅𝑈7 15 se 𝑐1 0 adotar 𝑐1 1 7 𝑑1 𝑅𝑈6 20 se 𝑑1 0 adotar 𝑑1 1 6 𝑒1 𝑅𝑈4 10 se 𝑒1 0 adotar 𝑒1 04 𝑒 número 𝑒 sintaxe no Scinotes e 𝜋 número 𝜋 sintaxe no Scinotes pi Gerar um vetor 𝑡 de zero a 2𝜋 com intervalo de 001 1 2 pontos Gerar as seguintes funções a 05p 𝑥𝑡 𝑡𝑎𝑛𝑎1𝜋𝑡 𝑐1𝜋 b 05p 𝑦𝑡 𝑠𝑒𝑛𝑐1𝜋𝑡 𝑏1𝜋 c 05p 𝑣𝑡 𝑒𝑒1𝑡 d 05p 𝑤𝑡 2𝑒1𝑡𝑐𝑜𝑠𝑒1 𝜋 4 𝑡 e Plotar todas as funções na mesma figura usando o comando subplot Colocar os nomes nos eixos e o título de cada figura como no exemplo a seguir Será tirada nota se a imagem não cumprir com o solicitado Usar o comando plot para melhor visualização Sinais e Sistemas Prof Eng Viviana R Zurro MSc M9 SS Roteiro 3 Exemplo Esta figura é somente um exemplo os gráficos obtidos não serão esses 2 2 pontos Gerar e plotar no mesmo gráfico os seguintes sinais a 𝑥1𝑡 𝑅𝑈1𝑠𝑒𝑛𝑡 b 𝑥2𝑡 𝑅𝑈2 2 𝑠𝑒𝑛3𝑡 c 𝑥3𝑡 𝑅𝑈3 3 𝑠𝑒𝑛5𝑡 d 𝑥4𝑡 𝑅𝑈4 4 𝑠𝑒𝑛7𝑡 e 𝑥5𝑡 𝑅𝑈5 5 𝑐𝑜𝑠9𝑡 f 𝑥6𝑡 𝑅𝑈6 6 𝑐𝑜𝑠11𝑡 g 𝑥7𝑡 𝑅𝑈7 7 𝑐𝑜𝑠13𝑡 h 𝑦𝑡 𝑥1𝑡 𝑥2𝑡 𝑥3𝑡 𝑥4𝑡 𝑥5𝑡 𝑥6𝑡𝑥7𝑡 Sinais e Sistemas Prof Eng Viviana R Zurro MSc M9 SS Roteiro 4 Exemplo Esta figura é somente um exemplo os gráficos obtidos não serão esses ATIVIDADE 2 Tempo discreto Gerar um vetor 𝑛 de 10 a 10 com intervalo igual a 1 Criar a função impulso unitário Criar a função degrau unitário 𝑎2 𝑅𝑈3 se 𝑎2 0 adotar 𝑎2 3 𝑏2 𝑅𝑈410 se 𝑏2 0 adotar 𝑏2 04 Os parâmetros 𝑐1 e 𝑑1 são os mesmos da Atividade 1 1 3 pontos Gerar as seguintes funções a 05p 𝑥𝑛 𝑅𝑈1 𝑅𝑈2 𝑅𝑈3 𝑅𝑈4 𝑅𝑈5 𝑅𝑈6 𝑅𝑈7 b 1p 𝑦𝑛 2𝑐1𝑛𝑐𝑜𝑠𝑐1 𝜋 4 𝑛 𝑢𝑛 𝑅𝑈1 𝑢𝑛 8 𝛿𝑛 2 c 15p 𝑧𝑛 𝑒𝑏2𝑛𝑥𝑛 𝑅𝑈2 𝑥𝑛 𝑅𝑈3 𝑅𝑈1 𝑛 8 2 3 pontos Calcular 𝑜𝑛 𝑥𝑛 𝑦𝑛 𝑧𝑛 𝑝𝑛 𝑥𝑛 𝑦𝑛 𝑧𝑛 𝑞𝑛 𝑥𝑛 𝑦𝑛 𝑧𝑛 3 Plotar todos os gráficos 𝑥𝑛 𝑦𝑛 𝑧𝑛 𝑜𝑛 𝑝𝑛 e 𝑞𝑛 como sinal discreto na mesma figura usando o comando subplot Colocar os nomes nos eixos e o título de Sinais e Sistemas Prof Eng Viviana R Zurro MSc M9 SS Roteiro 5 cada figura como no exemplo a seguir Será tirada nota se a imagem não cumprir com o solicitado Usar o comando plot2d3 para melhor visualização Exemplo RU 1234567 𝑥𝑛 1 2 3 4 5 6 7 𝑦𝑛 20466𝑛𝑐𝑜𝑠0466 𝜋 4 𝑛 𝑢𝑛 1 𝑢𝑛 8 𝛿𝑛 2 𝑧𝑛 𝑒04𝑛𝑥𝑛 2 𝑥𝑛 3 1 𝑛 8 Sinais e Sistemas Prof Eng Viviana R Zurro MSc M9 SS Roteiro 6 Esta figura é somente um exemplo os gráficos obtidos não serão esses ATIVIDADE 1 1 A clf a1 93 b1 92 c1 17 d1 820 e1 910 t 00012pi y tana1pitc1pi plott y xlabelt ylabelAmplitude titlext B clf a1 93 b1 92 c1 17 d1 820 e1 910 t 00012pi y sinc1pitb1pi plott y xlabelt ylabelAmplitude titleyt C clf a1 93 b1 92 c1 17 d1 820 e1 910 t 00012pi y ee1t plott y xlabelt ylabelAmplitude titlevt D clf a1 93 b1 92 c1 17 d1 820 e1 910 t 00012pi y 2e1tcose1pi4t plott y xlabelt ylabelAmplitude titlewt E clf a1 93 b1 92 c1 17 d1 820 e1 910 t 00012pi a tana1pitc1pi b sinc1pitb1pi c ee1t d 2e1tcose1pi4t subplot221 plott a xlabelt ylabelAmplitude titlext subplot222 plott b xlabelt ylabelAmplitude titleyt subplot223 plott c xlabelt ylabelAmplitude titlevt subplot224 plott d xlabelt ylabelAmplitude titlewt 2 clf RU1 7 RU2 1 RU3 9 RU4 9 RU5 5 RU6 8 RU7 0 t 00017 x1 RU1sint x2 RU22sin3t x3 RU33sin5t x4 RU44sin7t x5 RU55cos9t x6 RU66cos11t x7 RU77cos13t y x1 x2 x3 x4 x5 x6 x7 plot2dt x1 1 plot2dt x2 2 plot2dt x3 3 plot2dt x4 4 plot2dt x5 5 plot2dt x6 6 plot2dt x7 7 plot2dt y 21 legend x1 x2 x3 x4 x5 x6 x7 y xlabelt ylabelAplitude titleSinais ATIVIDADE 2 function vux v b sizex for i 1b2 if xi 0 then v v 1 else v v 0 end end endfunction function vdeltax v b sizex for i 1b2 if xi 0 then v v 1 else v v 0 end end endfunction 1 A function vxa v b sizea for i 1b2 ifai 8 ai 0 then v v 0 elseifai1 then v v RU1 elseifai2 then v v RU2 elseifai3 then v v RU3 elseifai4 then v v RU4 elseifai5 then v v RU5 elseifai6 then v v RU6 elseifai7 then v v RU7 end end endfunction B y 2c1ncosnc1pi4unRU1un8 deltan2 C function vza v b sizea for i 1b2 ifai RU1 ai 8 then v v eb2aixaiRU2xaiRU3 else v v 0 end end endfunction 2 o xnyzn p xny zn q xn y zn 3 clf RU1 7 RU2 1 RU3 9 RU4 9 RU5 5 RU6 8 RU7 0 a2 RU3 b2 RU410 c1 17 d1 420 n 10110 function vxa v b sizea for i 1b2 ifai 8 ai 0 then v v 0 elseifai1 then v v RU1 elseifai2 then v v RU2 elseifai3 then v v RU3 elseifai4 then v v RU4 elseifai5 then v v RU5 elseifai6 then v v RU6 elseifai7 then v v RU7 end end endfunction y 2c1ncosnc1pi4unRU1un8 deltan2 function vza v b sizea for i 1b2 ifai RU1 ai 8 then v v eb2aixaiRU2xaiRU3 else v v 0 end end endfunction o xnyzn p xny zn q xn y zn subplot321 plot2d3n xnxlabelnylabelAmplitudetitlexn subplot322 plot2d3n yxlabelnylabelAmplitudetitleyn subplot323 plot2d3n znxlabelnylabelAmplitudetitlezn subplot324 plot2d3n oxlabelnylabelAmplitudetitleon subplot325 plot2d3n pxlabelnylabelAmplitudetitlepn subplot326 plot2d3n qxlabelnylabelAmplitudetitleqn ATIVIDADE 1 1 A clf a1 93 b1 92 c1 17 d1 820 e1 910 t 00012pi y tana1pitc1pi plott y xlabelt ylabelAmplitude titlext B clf a1 93 b1 92 c1 17 d1 820 e1 910 t 00012pi y sinc1pitb1pi plott y xlabelt ylabelAmplitude titleyt C clf a1 93 b1 92 c1 17 d1 820 e1 910 t 00012pi y ee1t plott y xlabelt ylabelAmplitude titlevt D clf a1 93 b1 92 c1 17 d1 820 e1 910 t 00012pi y 2e1tcose1pi4t plott y xlabelt ylabelAmplitude titlewt E clf a1 93 b1 92 c1 17 d1 820 e1 910 t 00012pi a tana1pitc1pi b sinc1pitb1pi c ee1t d 2e1tcose1pi4t subplot221 plott a xlabelt ylabelAmplitude titlext subplot222 plott b xlabelt ylabelAmplitude titleyt subplot223 plott c xlabelt ylabelAmplitude titlevt subplot224 plott d xlabelt ylabelAmplitude titlewt 2 clf RU1 7 RU2 1 RU3 9 RU4 9 RU5 5 RU6 8 RU7 0 t 00017 x1 RU1sint x2 RU22sin3t x3 RU33sin5t x4 RU44sin7t x5 RU55cos9t x6 RU66cos11t x7 RU77cos13t y x1 x2 x3 x4 x5 x6 x7 plot2dt x1 1 plot2dt x2 2 plot2dt x3 3 plot2dt x4 4 plot2dt x5 5 plot2dt x6 6 plot2dt x7 7 plot2dt y 21 legend x1 x2 x3 x4 x5 x6 x7 y xlabelt ylabelAplitude titleSinais ATIVIDADE 2 function vux v b sizex for i 1b2 if xi 0 then v v 1 else v v 0 end end endfunction function vdeltax v b sizex for i 1b2 if xi 0 then v v 1 else v v 0 end end endfunction 1 A function vxa v b sizea for i 1b2 ifai 8 ai 0 then v v 0 elseifai1 then v v RU1 elseifai2 then v v RU2 elseifai3 then v v RU3 elseifai4 then v v RU4 elseifai5 then v v RU5 elseifai6 then v v RU6 elseifai7 then v v RU7 end end endfunction B y 2c1ncosnc1pi4unRU1un8 deltan2 C function vza v b sizea for i 1b2 ifai RU1 ai 8 then v v eb2aixaiRU2xaiRU3 else v v 0 end end endfunction 2 o xnyzn p xny zn q xn y zn 3 clf RU1 7 RU2 1 RU3 9 RU4 9 RU5 5 RU6 8 RU7 0 a2 RU3 b2 RU410 c1 17 d1 420 n 10110 function vxa v b sizea for i 1b2 ifai 8 ai 0 then v v 0 elseifai1 then v v RU1 elseifai2 then v v RU2 elseifai3 then v v RU3 elseifai4 then v v RU4 elseifai5 then v v RU5 elseifai6 then v v RU6 elseifai7 then v v RU7 end end endfunction y 2c1ncosnc1pi4unRU1un8 deltan2 function vza v b sizea for i 1b2 ifai RU1 ai 8 then v v eb2aixaiRU2xaiRU3 else v v 0 end end endfunction o xnyzn p xny zn q xn y zn subplot321 plot2d3n xnxlabelnylabelAmplitudetitlexn subplot322 plot2d3n yxlabelnylabelAmplitudetitleyn subplot323 plot2d3n znxlabelnylabelAmplitudetitlezn subplot324 plot2d3n oxlabelnylabelAmplitudetitleon subplot325 plot2d3n pxlabelnylabelAmplitudetitlepn subplot326 plot2d3n qxlabelnylabelAmplitudetitleqn xn yn zn on pn qn Amplitude Amplitude Amplitude Amplitude Amplitude Amplitude n n n n n n 10 8 6 4 2 0 2 4 6 8 10 10 8 6 4 2 0 2 4 6 8 10 10 8 6 4 2 0 2 4 6 8 10 10 8 6 4 2 0 2 4 6 8 10 10 8 6 4 2 0 2 4 6 8 10 10 8 6 4 2 0 2 4 6 8 10 10 5 0 5 10 1 08 06 04 02 0 6 4 2 0 2 4 6 0 05 1 15 0 2 4 6 8 10 10 5 0 5 10