There's no built-in meshgrid function, the argument being (iirc) that it's 
simple to implement if needed, and most cases where it might be used would 
be better served by indexing into grid spacing vectors (of size n) instead 
of a dense 2d array (of size n^2). A one-liner implementation looks like:

meshgrid(x,y) = (repmat(x',length(y),1),repmat(y,1,length(x)))

On Saturday, November 14, 2015 at 12:03:47 PM UTC-6, digxx wrote:
>
> Maybe repmat?
>>
>  Or is there also something else?
>

Reply via email to