%% Get Information About EDF File
% Use the edfinfo function to create an edfinfo object containing information about the file example.edf.

info = edfinfo('example.edf')

%
% Display this information about the second signal in the file:
% Its name
% The physical units in which the data is expressed
% The minimum and maximum physical values of the data
% The number of samples it contains

nsig = 2;

disp([info.SignalLabels(nsig) info.PhysicalDimensions(nsig) ...
    info.PhysicalMin(nsig) info.PhysicalMax(nsig) info.NumSamples(nsig)])

% Copyright 2020 The MathWorks, Inc.