nexus_xls_util
io · scripts/io/nexus_xls_util.m
NEXUS_XLS_UTIL Native reader for old binary .xls workbooks (BIFF5 / BIFF8).
An .xls file is an OLE2 compound file (FAT / mini-FAT sector chains and a
directory tree) whose "Workbook" (BIFF8) or "Book" (BIFF5) stream holds a
sequence of BIFF records. Both layers are decoded here from the
documented file format, with no external tools and no Excel.
Internal: reached through nexus_xlsx_util (which xlsread, sheetnames,
xlsfinfo, readtable, readmatrix and readcell already use), so every
spreadsheet reader treats an .xls like an .xlsx.
ISOLE = NEXUS_XLS_UTIL ('isole', FILE) true for an OLE2 container
[NAMES, STATES] = NEXUS_XLS_UTIL ('sheets', FILE)
[S, NAME, NAMES] = NEXUS_XLS_UTIL ('loadsheet', FILE, SHEET, CALLER)
S is the sparse sheet model of nexus_xlsx_util: r, c, kind ('n' number,
'd' date serial, 'b' logical, 's' text, 'e' error) and val. Date serials
are always on the 1900 date system; 1904 workbooks are shifted.