From: Antonio Trujillo-Ortiz on 2 Jul 2010 11:19 Hi all, Suppose a matrix containing NaN's and not NaN's elements, such as: A = [6 NaN NaN 3 NaN 5 4 NaN 9 2 6 3 8 1 0]; and we need to identifying the columns with NaN's, and then split them to choose only its non NaN's elements. To get, For column 2, a = [4 3]; for column 3, b = [8]; for column 4, c = [2 0]; I would appreciate any help on this.
From: us on 2 Jul 2010 11:34 "Antonio Trujillo-Ortiz" <atrujo(a)uabc.edu.mx> wrote in message <i0l018$t2s$1(a)fred.mathworks.com>... > Hi all, > > Suppose a matrix containing NaN's and not NaN's elements, such as: > > A = [6 NaN NaN 3 NaN > 5 4 NaN 9 2 > 6 3 8 1 0]; > > and we need to identifying the columns with NaN's, and then split them to choose only its non NaN's elements. To get, > > For column 2, > a = [4 > 3]; > > for column 3, > b = [8]; > > for column 4, > c = [2 > 0]; > > I would appreciate any help on this. by now, this is the nth OP along the same line of simple ML array problems within the last few days... what have YOU done so far to solve YOUR particular problem... show CSSM your code... us
|
Pages: 1 Prev: Two slices (or imagesc?) without having volume data Next: Modulo question |