level_model_slice LEVEL_MODEL_SLICE - level 3D points for slicing at z=0
place_elec_on_surf PLACE_ELEC_ON_SURF Place electrodes on the surface of a model
SOURCE CODE
0001 function out = vecnorm(x, p, dim)
0002 % Vectorwise norm: overload for matlab pre 2017b
0003 if nargin<2; p=2; end
0004 if nargin<3; dim=1; end
0005
0006 y = sum(x.^p, dim);
0007 out = y.^(1/p);