You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
285 B

function f = P_norm(FunctionCell)
fnum = size(FunctionCell,1);
p = 250;
f = @(x,y,z) power(FunctionCell{1}(x,y,z),-p);
for i = 2:fnum
f = @(x,y,z) f(x,y,z) + power(FunctionCell{i}(x,y,z),-p) ;
end
f = @(x,y,z) power(f(x,y,z),-1/p) ;
end