Logo Passei Direto
Buscar
Material
páginas com resultados encontrados.
páginas com resultados encontrados.
left-side-bubbles-backgroundright-side-bubbles-background

Crie sua conta grátis para liberar esse material. 🤩

Já tem uma conta?

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

left-side-bubbles-backgroundright-side-bubbles-background

Crie sua conta grátis para liberar esse material. 🤩

Já tem uma conta?

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

left-side-bubbles-backgroundright-side-bubbles-background

Crie sua conta grátis para liberar esse material. 🤩

Já tem uma conta?

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

left-side-bubbles-backgroundright-side-bubbles-background

Crie sua conta grátis para liberar esse material. 🤩

Já tem uma conta?

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

left-side-bubbles-backgroundright-side-bubbles-background

Crie sua conta grátis para liberar esse material. 🤩

Já tem uma conta?

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

left-side-bubbles-backgroundright-side-bubbles-background

Crie sua conta grátis para liberar esse material. 🤩

Já tem uma conta?

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

left-side-bubbles-backgroundright-side-bubbles-background

Crie sua conta grátis para liberar esse material. 🤩

Já tem uma conta?

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Prévia do material em texto

i 
 
 
 
CENTRO UNIVERSITÁRIO INTERNACIONAL UNINTER 
ESCOLA SUPERIOR POLITÉCNICA 
BACHARELADO EM ENGENHARIA ELÉTRICA 
DISCIPLINA DE SINAIS E SISTEMAS 
 
 
 
 
 
 
SINAIS E SISTEMAS 
 
 
 
 
 
 
 
ALUNO: JEAN MARCOS ECHS RIBEIRO RU:3323797 
 PROFESSORA: ENG. VIVIANA R. ZURRO MSC 
 
 
 
 
 
 
 
 
 
 
 
 
 
BLUMENAU – SC 
2022 – FASE C2 
1 
 
Atividade 01 – Tempo Contínuo 
 
RU: 3323797 
 
Diretório do Código: C:\Users\Jean Echs\Downloads\cshift\Atividade_SS_01.sci 
 
// função de grau// 
 
function [y]=degrau(x) 
y = zeros(1, length(x)); 
y(find(x>=0)) = 1; 
endfunction 
 
//Agora temos a função impulso 
 
function [y]=impulso(x) 
y = zeros(1, length(x)); 
y(find(x==0)) = 1; 
endfunction 
 
//Declaração da do RU 
 
RU1 = 3; RU2 = 3; RU3 = 2; RU4 = 3; RU5 = 7; RU6 = 9; RU7 = 7; 
// Limpa console 
 
clc 
clf() // LImpa o gráfico 
 
// manipulador de gráficos 
f=gcf() 
 
//Comando para criar um vetor de 40 posições de -20 a 20 com intervalo de 1 
n=-20:1:20; 
 
//substituindo valores conforme o modelo mostrado no roteiro 
a=3;b=2;c=0.4;d=0.1;e=%e;m=3;f=1;𝜋=%pi;g=5; 
 
//função degrau x[n] 
u1=degrau(n+b)-degrau(n-f); 
x1=tan(a*n+(c*𝜋/3).*e^(-d*n)).*u1; 
 
//função impulso y[n] 
y1=-RU1*impulso(n+2)+RU4*impulso(n+1)+RU3*impulso(n)+RU7*impulso(n-1)+RU5*impulso(n-2)-RU6*im-
pulso(n-3); 
 
//calculo z[n] 
u2=degrau(n+f)-degrau(n-g); 
 
xa=cshift(x1,[0,+RU3]);//x[n+4]..../função Cshift (deslocamento circular) 
 
for i=-20:1:20 //laço for, 'intervalo definido1 executar: 
 
z1(i+21)=(0.7^i*(xa(-i+21)-RU3))+((0.3*i)*u2(i+21)); // Equação 
 
end //fim laço for 
 
//o[n] 
o=x1+y1.*z1'; 
 
//p[n] 
p=x1-y1-z1'; 
 
//q[n] 
q=x1.*(y1+z1'); 
2 
 
Plotagens dos Gráficos: y[n]; x[n]; z[n]; o[n]; p[n]; q[n]. 
 
 
 
--> subplot(321) 
--> plot2d3(n,x1,style=1)//x[n], a função style define a cor da linha 
--> f.children.children(1).children.thickness=2;//Desing (grossura da linha) 
--> title('x[n]')//títuo do grafico 
--> xlabel('n') 
--> ylabel('amplitude') 
--> subplot(322) //3 linhas 2 colunas 
--> plot2d3(n,y1,style=1)//x[n], a função style define a cor da linha 
--> f.children.children(1).children.thickness=2;//Desing (grossura da linha) 
--> title('y[n]')//título do gráfico 
--> xlabel('n') 
--> ylabel('amplitude') 
--> subplot(323) 
--> plot2d3(n,z1,style=2) 
--> f.children.children(1).children.thickness=2; 
--> title('z[n]') 
--> xlabel('n') 
--> ylabel('amplitude') 
--> subplot(324) 
--> plot2d3(n,o,style=2) 
--> f.children.children(1).children.thickness=2; 
--> title('o[n]' 
--> xlabel('n') 
--> ylabel('amplitude') 
--> subplot(325) 
--> plot2d3(n,p,style=5) 
--> f.children.children(1).children.thickness=2; 
--> title('p[n]') 
--> xlabel('n') 
--> ylabel('amplitude') 
--> subplot(326) 
--> plot2d3(n,q,style=5) 
--> f.children.children(1).children.thickness=2; 
--> title('q[n]') 
--> xlabel('n') 
--> ylabel('amplitude') 
--> ylabel('amplitude') 
--> ylabel('amplitude') 
 
 
 
 
 
 
 
 
3 
 
 
 
 
Figura 01 – Plotagem Gráfica 1. 
 
 
 
 
 
 
 
Figura 02 – Código Scinotes 1. 
 
 
 
4 
 
Atividade 02 – Tempo Discreto 
 
RU: 3323797 
 
Diretório do Código: C:\Users\Jean Echs\Downloads\cshift\Atividade_SS_02.sci 
 
 
//Linhas de código da atividade 
function [y]=degrau(x) 
y = zeros(1, length(x)); 
y(find(x>=0)) = 1; 
endfunction 
 
//função degrau 
function [y]=impulso(x) 
y = zeros(1, length(x)); 
y(find(x==0)) = 1; 
endfunction 
 
//função impulso 
clc//limpa console 
clf//limpa janela gráfica 
f=gcf()//manipulador de gráficos 
n=-5:1:5//geração do vetor tempo 
n2=-10:1:10//geração do vetor tempo 
//RU da AT anterior (3323797) 
 
//x[n] função degrau 
u=degrau(n+4)-degrau(n-2) 
x=(%e^(0.6*n)).*(cos(1*n+%pi/3)).*u 
 
//h1[n] função impulso 
h1=3*impulso(n)+3*impulso(n-1)+2*impulso(n-2) 
 
//h2[n]função degrau 
u2=degrau(n+2)-degrau(n-2) 
 
h2=sin(0.4*%pi*n).*u2 
//agora fazendo y=conv(x,h1,h2) 
y=conv(x,(h1-h2)) 
 
 
Plotagens dos Gráficos: x[n]; y[n]; h1[n]; h2[n]. 
 
 
 
subplot(221) 
plot2d3(n,x,style=1)//x[n], a função style define a cor da linha 
f.children.children(1).children.thickness=2;//controla a grossura da linha 
title('x[n]')//título 
xlabel('n') 
ylabel('amplitude') 
 
 
subplot(222) 
plot2d3(n,h1,style=1)//referente a h1[n] 
f.children.children(1).children.thickness=2;//controla a grossura da linha 
title('h1[n]') 
xlabel('n') 
5 
 
 
ylabel('amplitude') 
 
 
subplot(223) 
plot2d3(n,h2,style=19)//referente ah2[n] 
f.children.children(1).children.thickness=2;//controla a grossura da linha 
title('h2[n]') 
xlabel('n') 
ylabel('amplitude') 
 
 
subplot(224) 
plot2d3(n2,y,style=19)//referente ay[n] 
f.children.children(1).children.thickness=2;//controla a grossura da linha 
title('y[n]') 
xlabel('n') 
ylabel('amplitude') 
 
 
 
 
 
 
 
Figura 03 – Plotagem Gráfica 2. 
 
6 
 
 
 
Figura 04 – Código Scinotes 2.

Mais conteúdos dessa disciplina