nwbExport
- nwbExport(nwbFileObjects, filePaths, mode)[source]
NWBEXPORT - Writes an NWB file.
- Syntax:
NWBEXPORT(nwb, filename)Writes the nwb object to a file at filename.- Input Arguments:
nwb (
NwbFile) - Nwb file objectfilename (
string) - Filepath pointing to an NWB file.
- Usage:
Example 1 - Export an NWB file:
% Create an NWB object with some properties: nwb = NwbFile; nwb.session_start_time = datetime('now'); nwb.identifier = 'EMPTY'; nwb.session_description = 'empty test file'; % Write the nwb object to a file: nwbExport(nwb, 'empty.nwb');
Example 2 - Export an NWB file using an older schema version:
% Generate classes for an older version of NWB schemas: generateCore('2.5.0') % Create an NWB object with some properties: nwb = NwbFile; nwb.session_start_time = datetime('now'); nwb.identifier = 'EMPTY'; nwb.session_description = 'empty test file'; % Write the nwb object to a file: nwbExport(nwb, 'empty.nwb');
See also