Error make_grid

I’m using croco1.3 with a recent version matlab (R2023b), but when I do “make_grid”, it appears “error using ncmex”, with the older version of matlab like R2018a it didn´t appear this error.

Anyone knows if there is some version of croco compatible with Matlab2023?

Hi,

I also had the same error and took me a long time to fix it.
Solution: Edit the following file in croco_tools:
croco_tools/UTILITIES/mexcdf/netcdf_toolbox/netcdf/ncutility/ncmex.m

Around line number 123, if(eval(v1)) > 4, etc., comment out that entire if condition block and replace it with the following:

fcn=‘mexnc’

save and exit.

This has to do with the matlab version’s compatibility with netcdf, but I was able to run it after this change. All the best!

1 Like

hi,
Thanks so much
I will