[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: Zero entries in one column of a matrix

**From**: |
Miquel Cabanas |

**Subject**: |
Re: Zero entries in one column of a matrix |

**Date**: |
Fri, 02 Apr 2004 10:10:33 +0200 |

**User-agent**: |
Mutt/1.3.28i |

I guess so, but I think someone else knowledgeable in Octave's code
should enlight all of us about the use of boolean matrices as index
selectors.
Miquel
On Thu, Apr 01, 2004 at 10:02:57AM -0800, Henry F. Mollet wrote:
>* Thanks for clear explanation.*
>* *
>* Can I now also look at it as follows?*
>* In M (: , 2) the ":" operator? says use all entries/rows in the second*
>* column of M;*
>* whereas in M (M(:,2) ~= 0 , 2), the implied ":" operator? looks at the*
>* statement row by row and when it sees a boolean false (=0) says this is*
>* *not* an index and therefore the entry (which was an actual 0) has to be*
>* skipped?*
>* Henry*
>* *
--
Miquel E Cabanas ------------------------------------------------------
SeRMN, Universitat Autonoma de Barcelona (address@hidden)
------------------------------------------o-oo--ooo---ooo--oo-o--------
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------