[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: Question with basic Octave command

**From**: |
Juan Pablo Carbajal |

**Subject**: |
Re: Question with basic Octave command |

**Date**: |
Sat, 12 Jul 2014 16:06:20 +0200 |

On Sat, Jul 12, 2014 at 3:36 PM, Yangster <address@hidden> wrote:
>* Let's say I have the following matrix: p = zeros(m,1) and h is a m-by-1*
>* matrix also. What does the following line of code do?*
>
>* p = h >= 0;*
>
>
>
>* --*
>* View this message in context: *
>* http://octave.1599824.n4.nabble.com/Question-with-basic-Octave-command-tp4665442.html*
>* Sent from the Octave - General mailing list archive at Nabble.com.*
>
>* _______________________________________________*
>* Help-octave mailing list*
>* address@hidden*
>* https://lists.gnu.org/mailman/listinfo/help-octave*
It overwrites the contents of p by boolean variables. if p(k) == True
(or 1) then h(k) was bigger or equal to zero.