Skip to content

nexus_xlsx_write

io · scripts/io/nexus_xlsx_write.m

NEXUS_XLSX_WRITE  Write a cell array of values into an .xlsx workbook (native).

  NEXUS_XLSX_WRITE (FILE, C, SHEET, RANGE, MODE, CALLER)

  C is a cell array; numeric scalars become numbers (NaN is left blank),
  char/string become text, logicals become booleans, datetime values become
  Excel dates and `missing` leaves the cell blank.  SHEET is a name or a
  1-based index, RANGE the top-left cell (or a range, only its first cell is
  used) such as 'B2'.  MODE is one of
    'inplace'        (default) merge into the sheet, keep other cells,
    'overwritesheet' replace the contents of the sheet,
    'append'         write below the last used row of the sheet,
    'replacefile'    start a new workbook.
  Existing workbooks are read back and rewritten with the cell values of
  all their sheets (formulas are saved as their last calculated values and
  styles other than date formats are not preserved).