MEXNC

From WikiROMS
Revision as of 16:56, 11 April 2008 by Diego (talk | contribs) (New page: MEXNC is a mex-file interface to NetCDF files for MATLAB. In simple terms, it is a set of files (mex and .m files) that allows Matlab to read and write NetCDF files, which are the standard...)
(change visibility) (diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

MEXNC is a mex-file interface to NetCDF files for MATLAB. In simple terms, it is a set of files (mex and .m files) that allows Matlab to read and write NetCDF files, which are the standard input and output files of ROMS.

HERE is a link to the MEXNC project page.

How to install MEXNC?

You have to download the MEXNC version that matches BOTH, your specific Matlab version and your operating system.

  • First determine what Matlab version you have by typing on the Matlab command line:
    version('-release')
  • Then, go to the download area, scroll down and click your Matlab version (verify that you operating system is listed as an option).
  • Download the latest release
  • Extract (i.e. unzip or unpack) the file in a location where it can stay indefinitely.
  • In Matlab, add the path of your recently extracted mexnc directory. To do this...
  1. Click on File > Set Path... (a GUI will pop-up)
  2. Click on the Add with Subfolders... button, and add the path to your new mexnc folder
  3. Click on the Save button, and close the GUI