%
% These header comments will appear when you ask for help on the
% function.
%
% Function demofunc372
%
% Usage, v = demofunc372(x1,x2,x3)
%
% This function returns the variance of each of the input vectors.
% Up to three input vectors can be given.
%
%
% These comments won't appear when you ask for help, since they are
% separated from the first comment block. More specific comments
% or bug-lists might be kept here.
function v = demofunc372(x1,x2,x3)
v = sum(x1 .* x1);
if (nargin > 1) v = [v sum(x2 .* x2)]; end;
if (nargin > 2) v = [v sum(x3 .* x3)]; end;