Converts into a matrix texts representing separated values
A = csvTextScan(M) A = csvTextScan(M, separator) A = csvTextScan(M, separator, decimal) A = csvTextScan(M, separator, decimal, conversion) A = csvTextScan(M, separator, decimal, conversion, range)
vector of strings. UTF-8 strings are supported.
a string: the column separator mark.
a string: the decimal mark. The available values are "." or ",".
If decimal
is not []
and
conversion
is set to string
,
the decimal conversion will be done.
"string" or "double": type of the expected output A
.
With "double",
%nan
.vector of 4 decimal integers: the
range of rows and columns which must be read (default range=[],
meaning that all the rows and columns). Specify range using the
format [R1 C1 R2 C2]
where (R1,C1) is the upper
left corner of the data to be read and (R2,C2) is the lower right
corner.
matrix of strings or double, with as many rows as M
has
components: A(i,:)
is the conversion result of
M(i)
.
Given a text matrix with delimited fields, this function returns the corresponding Scilab matrix of strings or of decimal or complex numbers.
To skip an input argument and use its default value, specify [].
The default values of optional input arguments are defined by the
csvDefault
function.
![]() | The csvTextScan and csvRead functions have the
same purpose. csvTextScan input are strings,
while csvRead reads from a file. |
Version | Description |
5.4.0 | Function introduced. Based on the 'csv_readwrite' module. |
5.4.1 | If decimal is not [] and
conversion is set to string ,
the decimal conversion will be done. |