Navigation

Operators and Keywords

Function List:

C++ API

meshgrid.m File Reference


Functions

endif if (nargin< 2) y
else error ("meshgrid: arguments must be vectors")
endif if (isvector(x)&&isvector(y)&&isvector(z)) lenx

Variables

 function [xx, yy, zz]
 yy = repmat (y(:), 1, length (x))
 leny = length (y)
 lenz = length (z)
 xx = repmat (repmat (x(:).', leny, 1), [1, 1, lenz])
 zz = reshape (repmat (z(:).', lenx*leny, 1)(:), leny, lenx, lenz)

Function Documentation

else error ( "meshgrid: arguments must be vectors"   ) 

endif if ( isvector(x)&&isvector(y)&&isvector(z)   ) 

endif if (  ) 


Variable Documentation

function[xx, yy, zz]

Initial value:

 meshgrid (x, y, z)

  if (nargin == 0 || nargin > 3)
    print_usage ()

leny = length (y)

lenz = length (z)

xx = repmat (repmat (x(:).', leny, 1), [1, 1, lenz])

yy = repmat (y(:), 1, length (x))

zz = reshape (repmat (z(:).', lenx*leny, 1)(:), leny, lenx, lenz)