File: bool2s.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (27 lines) | stat: -rw-r--r-- 613 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.TH bool2s 1 "September 1997" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
bool2s - convert boolean matrix to a zero one matrix.
.SH CALLING SEQUENCE
.nf
bool2s(x)
.fi
.SH PARAMETERS
.TP
x 
: a boolean vector or a boolean matrix or a constant matrix
.SH DESCRIPTION
If \fVx\fR is a boolean matrix,
\fVbool2s(x)\fR returns the matrix where "true" values are replaced by 1
and "false" value by 0.
.LP
If \fVx\fR is a "standard" matrix,
\fVbool2s(x)\fR returns the matrix where non-zero values are replaced by 1.

.SH EXAMPLE
.nf
bool2s([%t %t %f %t])
bool2s([2.3 0 10 -1])
.fi
.SH SEE ALSO
boolean, find