ex6: terminated.

This commit is contained in:
rainydaysavings 2020-10-05 22:52:47 +01:00
parent 4fd96c59cb
commit da3d8dc332

8
DiogoEliseuHugo_TP2_6.m Normal file
View File

@ -0,0 +1,8 @@
%% 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