From: Antonio Trujillo-Ortiz on
Hi all,

I need your help on this. Suppose you have the matrix:

A = [NaN 0 3;7 2 6;5 1 2;NaN NaN 5];

and you need to replace the NaN's column elements by its nanmeans to get,

R = [6 0 3;7 2 6;6 1 5];

I would appreciate any hint.

Thx