getting the mean EXCEPT zero entries

I have a matrix, M = [zeros(10,10); 1 , 2 , 3 ,4 ,5,6,7,8,9,10];
I want to get the mean of each column, except the zero terms. How do I do this?

回答(1 个)

类别

帮助中心File Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息

标签

提问:

cgo
2018-11-9

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by