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

This note was uploaded on 09/15/2011 for the course EE 150 at USC.

Ask a homework question - tutors are online