function [y] = rms(v)
% An example of a function that calculates
% the root-mean-square value of a vector of values
%
% BJ Furman
% 14NOV2009

vs = v.^2;   % what does this line do? Also note semicolon.
s = length(v);   % what does this line do? Also note semicolon.
y = sqrt(sum(vs)/s);   % what does this line do? Also note semicolon.