NetCDF Files - MATLAB & Simulink (original) (raw)

Main Content

Network Common Data Form

Network Common Data Form (netCDF) is a set of software libraries and machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data. You can interact with netCDF files in several ways:

MATLAB uses netCDF C library version 4.9.2.

Live Editor Tasks

Import Data Import data from a file in the Live Editor (Since R2023a)

Apps

Functions

expand all

nccreate Create variable in netCDF file
ncdisp Display contents of netCDF data source in Command Window
ncinfo Return information about netCDF data source
ncread Read data from variable in netCDF data source
ncreadatt Read attribute from netCDF data source
ncwrite Write data to netCDF file
ncwriteatt Write attribute to netCDF file
ncwriteschema Add netCDF schema definitions to netCDF file

Library Functions

File Operations

Dimensions

Groups

Variables

Attributes

User-Defined Types

netcdf.defVlen Define user-defined variable length array type (NC_VLEN) (Since R2022a)
netcdf.inqUserType Return information about user-defined type (Since R2022a)
netcdf.inqVlen Return information about user-defined NC_VLEN type (Since R2022a)

Utilities

Topics

Troubleshooting