help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: function applied to each component in an if clause


From: Francesco Potorti`
Subject: Re: function applied to each component in an if clause
Date: Thu, 13 Mar 2008 09:34:32 +0100

>I currently don't have a recent Octave version available, but there might be
>some function to convert your lower2 to a bool vector.

octave> help logical
logical is the user-defined function from the file
/usr/share/octave/2.1.73/m/general/logical.m

 -- Function File:  logical (ARG)
     Convert ARG to a logical value.  For example,

          logical ([-1, 0, 1])

     is equivalent to

          [-1, 0, 1] != 0

-- 
Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: address@hidden
Web: http://fly.isti.cnr.it/           Key:   fly.isti.cnr.it/public.key


reply via email to

[Prev in Thread] Current Thread [Next in Thread]