stat

stat - s function mean = avg(x,n) mean = sum(x)/n;

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function [mean,stdev] = stat(x) n = length(x); mean = avg(x,n); stdev = sqrt(sum((x-avg(x,n)).^2)/n);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: s function mean = avg(x,n) mean = sum(x)/n;...
View Full Document

Ask a homework question - tutors are online