Skip to content

nexus_xlsx_read

io · scripts/io/nexus_xlsx_read.m

NEXUS_XLSX_READ  Read one worksheet of an .xlsx workbook (native, no external tools).

  [RAW, KIND, NAME, ORIGIN] = NEXUS_XLSX_READ (FILE, SHEET, RANGE, CALLER)

  RAW is a cell array covering the requested range (default: the bounding
  box of all non-empty cells); empty cells hold [].  KIND is a char matrix
  of the same size: 'n' number, 'd' date/time (RAW holds the Excel serial
  number), 'b' logical, 's' text, 'e' error value (RAW holds NaN) and ' '
  for an empty cell.  NAME is the sheet name and ORIGIN the [row col] of the
  first returned cell in the sheet.

  SHEET is a name or a 1-based index ([] is the first sheet).  RANGE is an
  A1-style range such as 'B2:D9', 'A:C', '3:5', a single cell, or a workbook
  defined name (named range).  A lone A1 cell means "from that cell to the
  end of the data" unless CELLMODE is true (the xlsread convention), in which
  case it selects exactly that cell.  A named range that embeds a sheet
  reference selects that sheet (overriding SHEET), matching MATLAB R2026a.