This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
DSP/TP1a/DiogoEliseuHugo_TP2_6.m
Diogo Cordeiro e4da058aad [new] add second assignment
organize file structuure.
2020-10-15 14:32:06 +01:00

9 lines
163 B
Matlab

%% Exercício 6
function er = DiogoEliseuHugo_TP2_6(X1,X2)
er = norma(X2-X1,2) / norma(X1,2);
end
function s = norma(X, P)
s = sum(abs(X).^P).^(1/P);
end