Prev: Area between graphs
Next: adaline
From: Joerg Buchholz on 1 Jul 2010 03:00 You might want to obtain the NaN index matrix: A_nan = isnan(A) A_nan = 1 0 0 0 0 0 0 0 0 1 1 0 and then replace columnwise: A(A_nan(:,1),1) = 6 A = 6 0 3 7 2 6 5 1 2 6 NaN 5 A(A_nan(:,2),2) = 1 A = 6 0 3 7 2 6 5 1 2 6 1 5 I'm sure a Matlab expert could do that in one line of code ... ;-)
|
Pages: 1 Prev: Area between graphs Next: adaline |