testStats - d % two putputs - large data set y =...

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

View Full Document Right Arrow Icon
% testXbar.m % (c) 2000 g.m.dick % % the purpose of this script is to test the function stats() % clear c % one output - trivial data x = [1:5]; Xaverage = stats(x); disp(['x = ' num2str(x)]); disp(['the average of x = ' num2str(Xaverage)]); d % two outputs - trivial data [meanX,stdDevX] = stats(x); disp(['the average of x = ' num2str(meanX)]); disp(['the standard deviation of x = ' num2str(stdDevX)]);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: d % two putputs - large data set y = rand(100,200); y = y.*100; [meanY,stdDevY] = stats(y); disp(['the average of y = ' num2str(meanY)]); disp(['the standard deviation of y = ' num2str(stdDevY)]); d % evil arguments - exercise each line independently %foo = stats; bar = stats(x,y); b...
View Full Document

This note was uploaded on 04/05/2010 for the course CHEMENG 05078870 taught by Professor Mustafa during the Spring '10 term at Ege Üniversitesi.

Ask a homework question - tutors are online