start = [25 17]; % Start location along each coordinate
count = [Inf Inf]; % Read until the end of each dimension
peaksData = ncread("example.nc","peaks",start,count);
whos peaksData
Name Size Bytes Class Attributes
peaksData 26x34 1768 int16
绘制数据图。
surf(peaksData)
title("Peaks Data Starting at [25 17]")