Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
xls_read
reads a sheet in an Excel file
Calling Sequence
[Value,TextInd] = xls_read(fd,Sheetpos)
Arguments
- fd
a number: the logical unit on the Excel stream returned by xls_open.
- Sheetpos
a number: the position of the beginning of the sheet in the Excel stream. This position is one of those returned by xls_open.
- Value
a matrix of numbers: the numerical data found in the sheet. The cells without numerical data are represented by
NaN
values.- TextInd
a matrix of indices with the same size as
Value
. The 0 indices indicates that no string exists in the corresponding Excel cell. A positive indexi
points to the stringSST(i)
whereSST
is given by xls_open.
Description
This function reads an Excel sheet given a logical unit on an Excel stream and the position of the beginning of the sheet within this stream. It returns the numerical data and the strings contained by the Excel cells.
The readxls function can be used to read all an Excel file in one function with a single function call.
Only BIFF8 Excel files (last Excel file version (2003)) are handled. |
Examples
Bibliography
This function is based on Excel stream description from OpenOffice (http://sc.openoffice.org/spreadsheetfileformat.pdf).
Used Functions
This function uses the xls.c file which can be found in a Scilab source version in the directory SCIDIR/modules/spreadsheet/src/c.
Report an issue | ||
<< xls_open | Spreadsheet | Console >> |