MATLAB Answers

problem creating netcdf files, in windows 7 64bit.

1 view (last 30 days)
dnavidad
dnavidad on 3 Aug 2011
i am really not familiarized with netcdf files, just starting to work with them. i have a template to make this files, but it is not working on my computer. that is the error i get.
any help?
??? Error using ==> subsasgn In an assignment A(:) = B, the number of elements in A and B must be the same.
Error in ==> netcdf.subsasgn at 83 result = subsasgn(v, s, other);
Error in ==> river_forcing at 246 rvrnc{'Cs_r'}(:) = Cs_r;

  2 Comments

Ashish Uthama
Ashish Uthama on 3 Aug 2011
Which function call is causing this issue? Could you provide reproduction steps? The error stack does not look like it is coming from the native netcdf package in MATLAB, is this your code or a third party toolbox?
Kelly Kearney
Kelly Kearney on 3 Aug 2011
Looks like the NetCDF Toolbox, which used to be available (but unsupported) along with the mexnc code. What version of Matlab are you using? If it's a recent one (2010+), you'll encounter a lot of name conflicts between this package and the native Matlab netcdf operators.

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!