1

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

Ryan Livingston
  • 1,898
  • 12
  • 18
Nan
  • 41
  • 5
  • "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

0 Answers0