I'm also having some trouble with the quantize function. When I run the demo provided with the toolbox, I get an error:
??? Error using ==> quantize
MEX level2 S-function "quantize" must be called with at least 4 right hand arguments
If I open the quantize.m function, I can see that the possible input arguments are t, x, u, flag and q...but there is no explanation of these arguments.
Can somebody explain them to me please? And also, which of them are necessary for the function to work...because there are 5, and the error says there should be at least 4.