%% Read NetCDF Data
% Read and plot variable named peaks from the file example.nc.

peaksData  = ncread('example.nc','peaks');
whos peaksData

% Plot peaksData and add a title.

surf(double(peaksData));
title('Peaks Data');

% Copyright 2018 The MathWorks, Inc.