Navigation

Operators and Keywords

Function List:

C++ API

io

Input/Output in external formats.

Select category:

File I/O

append_save
append_save M-file function
fexist
Checks whether a file exists.

Miscellaneous conversion functions

object2json
Returns a valid json string that will describe object; the string will be in a compact form (no spaces or line breaks).
pch2mat
Converts NASTRAN PCH file (SORT2) to a data structure and frequency vector.
read_namelist
S = READ_NAMELIST (FILENAME) returns the struct S containing namelists and variables in the file FILENAME organised in hierachical way:
write_namelist
WRITE_NAMELIST(S, FILENAME) writes a namelist data structure S to a file FILENAME.

CSV file functions

cell2csv
Create a CSV file from a cell array.
csv2cell
Read a CSV (Comma Separated Values) file and convert it into a cell array.
csvconcat
Concatenate a cell into a CSV string or array of strings.
csvexplode
Explode a CSV string into a cell.

XML I/O

xmlread
Read a VALUE from FILENAME as an XML file
xmlwrite
Write a VALUE into FILENAME (FD) as an XML file.

Spreadsheet I/O user functions for MS-Excel

oct2xls
Add data in 1D/2D CELL array ARR into a cell range specified in RANGE in worksheet WSH in an Excel spreadsheet file pointed to in structure XLS.
xls2oct
Read data contained within cell range RANGE from worksheet WSH in an Excel spreadsheet file pointed to in struct XLS.
xlsclose
Close the Excel spreadsheet pointed to in struct XLS, if needed write the file to disk.
xlsfinfo
Query Excel spreadsheet file FILENAME for some info about its contents.
xlsopen
Get a pointer to an Excel spreadsheet in the form of return argument (file pointer struct) XLS.
xlsread
Read data contained in range RANGE from worksheet WSH in Excel spreadsheet file FILENAME.
xlswrite
Add data in 1D/2D array ARR to worksheet WSH in Excel spreadsheet file FILENAME in cell range RANGE.

Spreadsheet I/O user functions for OpenOffice.org Calc

oct2ods
Transfer data to an OpenOffice_org Calc spreadsheet previously opened by odsopen().
ods2oct
Read data contained within cell range RANGE from worksheet WSH in an OpenOffice_org Calc spreadsheet file pointed to in struct ODS.
odsclose
Close the OpenOffice_org Calc spreadsheet pointed to in struct ODS, if needed write the file to disk.
odsfinfo
Query an OpenOffice_org spreadsheet file FILENAME (with ods suffix) for some info about its contents.
odsopen
Get a pointer to an OpenOffice_org spreadsheet in the form of return argument ODS.
odsread
Read data contained from cell range RANGE in worksheet WSH in OpenOffice_org Calc spreadsheet file FILENAME.
odswrite
Add data in 1D/2D array ARR into sheet WSH in OpenOffice_org Calc spreadsheet file FILENAME in cell range RANGE.

Spreadsheet utility functions

calccelladdress
calccelladdress (R, C) - compute spreadsheet style cell address from row & column index (both 1-based).
chk_spreadsheet_support
Check Octave / Matlab environment for spreadsheet I/O support.
parsecell
Divide a heterogeneous 2D cell array into a 2D numeric array and a 2D cell array containing only strings.

Spreadsheet function test scripts

io_ods_testscript
(Internal function) Check proper operation of ODS spreadsheet scripts.
io_xls_testscript
(Internal function) Check proper operation of XLS spreadsheet scripts.

Package: io