qt plots :3

This commit is contained in:
rainydaysavings 2020-10-08 15:42:51 +01:00
parent 1c925a67c7
commit 90790f5bdc
5 changed files with 14 additions and 2 deletions

View File

@ -17,12 +17,15 @@ figure
subplot(2,2,1:2)
x = fun_x(n);
stem(n, x)
title('x')
% Plot do impulso
subplot(2,2,3)
stem(n, impulso)
title('\delta')
% Plot do degrau
subplot(2,2,4)
stem(n, degrau)
title('\mu')
% Definição da sequência X
function p = fun_x(N)

View File

@ -15,12 +15,15 @@ function DiogoEliseuHugo_TP2_2(N1, N2)
subplot(2,2,1:2)
x = fun_x(n);
stem(n, x)
title('x')
% Plot do impulso
subplot(2,2,3)
stem(n, impulso)
title('\delta')
% Plot do degrau
subplot(2,2,4)
stem(n, degrau)
title('\mu')
end
%% Definição da sequência X

View File

@ -16,9 +16,12 @@ figure
% Plot de x1
subplot(3,1,1)
stem(n, x1)
title('x1')
% Plot de x2
subplot(3,1,2)
stem(n, x2)
title('x2')
% Plot de x3
subplot(3,1,3)
stem(n, x3)
title('x3')

View File

@ -18,4 +18,7 @@ plot(s);
plot(r);
plot(x);
hold off
DiogoEliseuHugo_TP2_6(s, x)
legend('s', 'r', 'x')
title(['Erro de aproximação de x a s: ' num2str(DiogoEliseuHugo_TP2_6(s, x))])