

Now the same thing in matlab - decide by yourself which one is correct or make more sense > xlist = -2. I had commented that 'meshgrid is kind of hard to describe in words.'. Mathematica was done on this template Timing[ Reader Philip Batchelor thought I could do better in describing meshgrid.

MATLAB timing was done using this template code by changing the grid spacing, as an example for the code that generate the above plot: tic = meshgrid(-2.2:2, -4.4:4) toc ImagePadding -> 20, Mesh -> 35, InterpolationOrder -> 2,ĬolorFunction -> "Rainbow", Boxed -> False] ListPlot3D[pts, PlotRange -> All, AxesLabel -> Automatic, If you have X Y meshgrid (1:100), and some 100x100 array Z, you know that the (x, y) coordinates of Z (i) is ( X (i), Y (i) ). Meshgrid lets you address the X and Y coordinate of an array directly. Using MATLAB's help standard example for meshgrid: Mathematica implementation meshgrid, Range] The Matlab documentation covers this very clearly.

( Update, added more points, and more timings)
