I am trying to generate a mex file from my code using matlab's coder. I'm using interp2. Only when running the mex file I get an error "Grid values must be strictly increasing." It seems that the grid values are monotonically increasing. Does someone know how to solve the problem? Thanks
Asked
Active
Viewed 218 times
1
-
"It seems that the grid values are monotonically increasing"? are you sure they really are? – m.s. May 06 '15 at 12:23
-
Also, it says "strictly" increasing. Are you sure not two consecutive values are the same? – am304 May 06 '15 at 12:48
-
I don't know if coder supports this, but it should work for any data: http://stackoverflow.com/a/21277035/2778484 – chappjc May 06 '15 at 15:02