genStats - end cell{end,end}=mean(totavg...

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

View Full Document Right Arrow Icon
Sheet1 Page 1 function genStats(excel) [num str cell]= xlsread(excel) [row col]=size(cell) avg=mean(num,2) for x=2:row cell{x,col+1}=avg(x-1) end totavg=mean(num) for y=2:col cell{row+1,y}=totavg(y-1)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: end cell{end,end}=mean(totavg) cell{1,end}='Average' cell{end,1}='Total Average' newFile=sprintf('Stats_%s',excel) xlswrite(newFile,cell)...
View Full Document

Ask a homework question - tutors are online