Mercurial > hg > mauch-mirex-2010
view _misc/general/.svn/text-base/qnorm.m.svn-base @ 8:b5b38998ef3b
added all that other stuff
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:54:25 +0100 |
parents | |
children |
line wrap: on
line source
function s = qnorm(inmat, varargin) dim = 1; if nargin > 1 q = varargin{1}; if nargin > 2 dim = varargin{2}; end else q = 2; end if ~(q == Inf) s = sum(inmat.^q,dim).^(1/q); else s = max(inmat,[],dim); end