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?


I also had the same error and took me a long time to fix it.
Solution: Edit the following file in croco_tools:

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


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

Thanks so much
I will