ex6: terminated.
This commit is contained in:
parent
4fd96c59cb
commit
da3d8dc332
8
DiogoEliseuHugo_TP2_6.m
Normal file
8
DiogoEliseuHugo_TP2_6.m
Normal 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
|
Reference in New Issue
Block a user