MATLAB 1) Introdução 2) Geração de Sinais Amostrados
MATLAB 1) Introdução 2) Geração de Sinais Amostrados
MATLAB 1) Introdução 2) Geração de Sinais Amostrados
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Tópicos em Processamento <strong>de</strong> <strong>Sinais</strong><br />
Departamento <strong>de</strong> Engenharia Elétrica<br />
Faculda<strong>de</strong> <strong>de</strong> Tecnologia<br />
Universida<strong>de</strong> <strong>de</strong> Brasília<br />
length(A)<br />
length(B)<br />
Após executar o código acima, realize manualmente, e em seguida usando o Matlab, as<br />
seguintes operações (indique quando a operação não é possível):<br />
A*B=<br />
B*A=<br />
A*C=<br />
A^2=<br />
A.^2=<br />
C^2=<br />
C.^2=<br />
A’=<br />
C*inv(C)=<br />
[B B B]=<br />
[A;A;A]<br />
% exemplo 3<br />
Veremos agora alguns comandos estatísticos. Consi<strong>de</strong>re o seguinte trecho <strong>de</strong> código:<br />
A=[ 1 2 3 4 5 6 7] %linha 1<br />
B=mean(A) %linha 2<br />
C=std(A) %linha 3<br />
Pause %linha 4<br />
RUIDOSO=randn(1,5000); %linha 5<br />
figure(gcf) %linha 6<br />
plot(RUIDOSO) %linha 7<br />
title('sinal ruidoso') %linha 8<br />
pause %linha 9<br />
MEDIA_RUIDOSO=mean(RUIDOSO) %linha 10<br />
DP_RUIDOSO=std(RUIDOSO) %linha 11<br />
Pause %linha 12<br />
MAISRUIDO=5*randn(1,5000); %linha 13<br />
MEDIA=mean(MAISRUIDO) %linha 14<br />
DP=std(MAISRUIDO) %linha 15<br />
8