Mercurial > hg > octave-nkf
comparison scripts/general/logical.m @ 3449:858695b3ed62
[project @ 2000-01-18 04:08:59 by jwe]
author | jwe |
---|---|
date | Tue, 18 Jan 2000 04:09:14 +0000 |
parents | 7aae2c3636a7 |
children | ef883684e58e |
comparison
equal
deleted
inserted
replaced
3448:0fb75d95b14f | 3449:858695b3ed62 |
---|---|
15 ## You should have received a copy of the GNU General Public License | 15 ## You should have received a copy of the GNU General Public License |
16 ## along with Octave; see the file COPYING. If not, write to the Free | 16 ## along with Octave; see the file COPYING. If not, write to the Free |
17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA | 17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA |
18 ## 02111-1307, USA. | 18 ## 02111-1307, USA. |
19 | 19 |
20 ## usage: logical (arg) | 20 ## -*- texinfo -*- |
21 ## @deftypefn {Function File} {} logical (@var{arg}) | |
22 ## Convert @var{arg} to a logical value. For example, | |
21 ## | 23 ## |
22 ## Convert ARG to a logical value. For example, | 24 ## @example |
25 ## logical ([-1, 0, 1]) | |
26 ## @end example | |
23 ## | 27 ## |
24 ## logical ([-1, 0, 1]) | 28 ## @noindent |
25 ## | |
26 ## is equivalent to | 29 ## is equivalent to |
27 ## | 30 ## |
28 ## [-1, 0, 1] != 0 | 31 ## @example |
32 ## [-1, 0, 1] != 0 | |
33 ## @end example | |
34 ## @end deftypefn | |
29 | 35 |
30 ## Author: jwe | 36 ## Author: jwe |
31 | 37 |
32 function y = logical (x) | 38 function y = logical (x) |
33 | 39 |