This commit is contained in:
Diogo Cordeiro 2020-10-08 15:32:24 +01:00
parent 97c9ede3b5
commit 1c925a67c7
5 changed files with 5 additions and 5 deletions

View File

@ -30,4 +30,4 @@ function p = fun_x(N)
f=0.05;
phi=0.5*pi;
p=A*cos(2*pi*f*N+phi);
end
end

View File

@ -4,4 +4,4 @@ clear ; close all; clc
%% Exercício 3
DiogoEliseuHugo_TP2_2(-10,30);
DiogoEliseuHugo_TP2_2(-50,20);
DiogoEliseuHugo_TP2_2(-100,100);
DiogoEliseuHugo_TP2_2(-100,100);

View File

@ -21,4 +21,4 @@ subplot(3,1,2)
stem(n, x2)
% Plot de x3
subplot(3,1,3)
stem(n, x3)
stem(n, x3)

View File

@ -5,4 +5,4 @@ end
function s = norma(X, P)
s = sum(abs(X).^P).^(1/P);
end
end

View File

@ -18,4 +18,4 @@ plot(s);
plot(r);
plot(x);
hold off
DiogoEliseuHugo_TP2_6(s, x)
DiogoEliseuHugo_TP2_6(s, x)