>> However, just using the slices on the matrix instead of passing the >> slices through ogrid is faster. > > So what is ogrid useful for? For the same problems where you would use meshgrid in Matlab. That is certain graphics problem for example; e.g. evaluating a surface z = f(x,y) over a grid of x,y values.