Nelson reads and writes tables in text-based and binary file formats for common data exchange tasks.
Text files (.csv, .txt, etc.):
Binary file:
Binary format is recommended for preserving exact numeric precision and working with large datasets.
Saved tables preserve the public T.Properties metadata. The internal table representation is not part of the file format contract.
% Create a sample table with sensor data
T = table([1.5; -2.3; 4.7], [0.5; 1.1; -0.7], [-1; 2; 3], 'VariableNames', {'Voltage', 'Current', 'Resistance'});
R = T;
filename = [tempdir(), 'table_example.nh5'];
save(filename, '-nh5', 'T');
clear T
load(filename, 'T');
assert(isequal(T, R));
T
% Create a sample table with sensor data
T = table([1.5; -2.3; 4.7], [0.5; 1.1; -0.7], [-1; 2; 3], 'VariableNames', {'Voltage', 'Current', 'Resistance'});
filename = [tempdir(), 'table_example.csv'];
writetable(T, filename);
T2 = readtable(filename);
| Version | Description |
|---|---|
| 1.10.0 | initial version |