char - Char function (original) (raw)
Scilab 5.3.3
- Scilab help
- Elementary Functions
- Bitwise operations
- Complex
- Discrete mathematics
- Elementary matrices
- Floating point
- Integer representation
- Matrix manipulation
- Matrix operations
- Search and sort
- Set operations
- Signal processing
- Symbolic
- Trigonometry
- abs
- amell
- and
- &
- cat
- cell2mat
- cellstr
- char
- delip
- diff
- exp
- inttrap
- isdef
- isempty
- isequal
- isequalbitwise
- isvector
- log
- log10
- log1p
- log2
- logm
- lstsize
- max
- min
- modulo
- ndims
- norm
- or
- |
- pertrans
- sign
- signm
- size
- sqrt
- sqrtm
- squarewave
- toeplitz
- typeof
Please note that the recommended version of Scilab is 2026.0.1. This page might be outdated.
See the recommended documentation of this function
Scilab help >> Elementary Functions > char
Calling Sequence
y=char( x) y=char(st1,st2,st3,....)
Arguments
x
a cell of strings arrays, or an array of ascii codes
st1,st2,st3
strings arrays
y:
a strings vector(column)
Description
One input argument :
Given a cell of strings arrays x, this function returns a strings vector yin which the rows are the components of the strings cell
Given an array of ascii codes x, this function returns a strings array y corresponding into ascii codes. If dims (x)=[n1,n2,n3,n4,....],then returned value have same size as input value instead of second dims, dims(y)=[n1,n3,n4,..]
More than one input argument :
Given strings arrays st1,st2,st3,..., this function returns a vector of strings in which the rows are the components of st1,st2,st3,... In the vector ythe length of all strings sti is completed by blanks, to have the same length than the lengthmax of sti.
Examples
x=hypermat([4,2,3],61:84); y=char(x) size(x) size(y)
st1="zeros"; st2=["one","two"]; st3=["three"]; y=char(st1,st2,st3) size(y)
length(y)
See Also
- asciimat — string matrix ascii conversions