Mean for non-zero elements



Hi,

I am a total newbie to Matlab.

I have a 100x100 matrix that has some zeros spaced ramdimly in the
matrix. How can I calculate the mean for all the NON-Zero elements?

Thanks!

j
.