File Exchange

image thumbnail

ncx, NetCDF eXplorer

version 1.0 (1000 KB) by

Interface for NetCDF visualisation

11 Ratings



View License

NCX is an interface (GUI) for NetCDF visualisation. NCX already includes the Matlab/NetCDF interface for Matlab versions from 5.3 until the current release 14, for Windows and Linux (authors: Charles R. Denham and John Evans)

-Unpack and add the base older (ncx) to your matlab path
-execute ncx at matlab prompt

Comments and Ratings (19)

Munshi Al

Bas des Tombe

After adding MexCDF to my working directories, the application appears to be working.


Why this package may not work in versions R211 and later: It is dependent on a mex file, which is no longer supported by Mathworks.


I too have same problem. couldn't run

??? Error using ==> feval
Invalid MEX-file 'D:\Matlab Downloaded\Flex\ncx\netcdf\mexcdf\pcwin\mexcdf53.dll': D:\Matlab
Downloaded\Flex\ncx\netcdf\mexcdf\pcwin\mexcdf53.dll is not a valid Win32 application.

same problem. couldn't run


janez (view profile)

i'm running Matlab R2008a and cannot get ncx to work. when i try to load the file, i get the following error:
??? Error using ==> feval
Invalid MEX-file 'C:\Program Files\MATLAB\R2008a\work\ecomviz\ncx\netcdf\mexcdf\pcwin\mexcdf53.dll': C:\Program
Files\MATLAB\R2008a\work\ecomviz\ncx\netcdf\mexcdf\pcwin\mexcdf53.dll is not a valid Win32 program.

i tried to do what Mark Brandon suggested above but i cannot find mexcdf53.dll file in the latest sourcefourge directory and the error keeps repeating and the ncx doesn't work.
it's such a tease!
any thoughts anyone?

i tried substituting

Does anyone know what the scripts in the /private directory are for and why it's named as such? Private directories are not allowed in the Matlab path, so how are the scripts in this directory to be used? Thanks for your help - seems like a great program so far.


This is the first time i have downloaded and installed ncx on a windows xp machine with matlab R2007a. After typing nxc it displays the GUI, but upon loading a file the following error message comes up. any help?
>> ncx
??? Error using ==> feval
Undefined function or method 'mexcdf60' for input arguments of type 'char'.

Error in ==> ncmex at 110
[varargout{:}] = feval(fcn, varargin{:});

Error in ==> at 20
[theNCid, status] = ncmex('open', name(self), thePermission);

Error in ==> netcdf.netcdf at 416
result = open(result, thePermission);

Error in ==> n_filevars at 21

Error in ==> ncx\private\ncx_load at 58
varnames = n_filevars(file);

Error in ==> ncx at 230

??? Error using ==> ncx('ncx_load')
Error using ==> feval
Undefined function or method 'mexcdf60' for input arguments of type 'char'.

??? Error while evaluating uimenu Callback


Mark Brandon

The support files for this program needs to upgraded to work with Matlab 2009a. You will need to get the latest version of the mexcdf package, which is available at sourceforge, at Just replace the files in the mexnc and netcdf subdirectories with the new files in the subdirectories with the same names in the mexcdf package. Matlab now provides native support for netcdf files, so there is no need to generate dll or mex files. Everything will work just fine.

Usama Anber

Plz can some help me, I used this ncx to load a netcdf file from the IPCC website (output of a GCM for air temperature), but it didn't work, what should I do ?

Ani Suryani

Very good, I hope this inteface can be used by all of oceanographer in the world..
Request for explaination :
could you please tell me, it is possible or not to run ncx on Matlab 7.1 R14?

Mathew Owens

Saves the hassle of installing netCDF and MexCDF on Linux - what a blessing!

Panos Athanasiadis

The tool is great. Now while working in MATLAB you only type <ncx> and see what is in your data .nc files.

There is space for improvent however:
a) It would be easy for the program to also plot anomalies along the chosen axis.

b) Ideally it would be nice to be able to play a sequence of frames.

c) Finally, I could not make it to plot lat-height or lon-height cross sections.

Wang Yanlei

convenience and availability

Alex AK

nice and easy tool


I just need to convert my .nc file to a text format so that it becomes readable...Can someone help me??


Humm... thats strange. It works fine with me and many people arround the word... hope I can help

d dd

tried several nc files, doesn't work


Renamed the function isprop to is_prop due to conflicts with a MATLAB built in function

change of the web address

MATLAB Release
MATLAB 6.0 (R12)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video