Hi!

Probably a quite basic question but was wondering if someone knows a quick 
way to get the average of theh positive elements of a matrix, eg, If I have 
an m*n matrix and want to get the average for each m so have m*1 but only 
want to work with non-zero elements and ignore the zero elements and 
negative elements

I guess I could using indexing and pull out the indexes corresponding to 
the positive elements but just wondering if anyone knew quicker ways!

Thanks!

Reply via email to