FUNCTION REFERENCE

preview

Preview the data a file holds under import options.

Preview the data a file holds under import options.

Syntax

T = preview(filename, opts)

Returns the first 8 rows the import options select, as readtable(filename, opts) would read them (fewer when the data has fewer rows).

Example

writematrix((1:12)', 'n.csv'); P = preview('n.csv', detectImportOptions('n.csv')); height(P)   % 8

Differences from MATLAB: none known.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.