www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ReadAttributeAssociatedWithGroupExample.m

    %% Read Attribute Associated with Group
% Read an attribute associated with a group. This example applies to netcdf4 format files only.

% Copyright 2015 The MathWorks, Inc.

desc_value = ncreadatt('example.nc','/grid2','description')