Code covered by the BSD License  

Highlights from
Data Browser

image thumbnail
from Data Browser by Phil Larimer
A utility to browse data files that involve one or more channels of data over time.

intervalHist(varargin)
function figureHandle = intervalHist(varargin)
% show an interval histogram

if nargin == 0
    figureHandle = 'Interval Histogram';
else
    events = getappdata(gca, 'events');

    figureHandle = figure('numbertitle', 'off', 'name', 'Interval Histogram');
    ISI = diff(events(varargin{5}).data);
    hist(ISI, round(length(ISI) / 5));    
end

Contact us at files@mathworks.com