Mask the matrix
Xin Dong
xdong at cse.unl.edu
Tue May 12 09:35:08 CDT 2009
Hi,
I have a program that generates a two row matrix with zero elements. I wanna
extract out the columns with elements in both rows are non-zero. For
example, if the matrix is
a = [ 1 0 2 3 4; 2 1 0 0 4],
I wanna get
b = [1 4; 2 4].
How can I use octave to do this?
Thanks,
Xin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20090512/3c4ffef4/attachment-0001.html
More information about the Help-octave
mailing list