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) |
else error | ( | "meshgrid: arguments must be vectors" | ) |
endif if | ( | isvector(x)&&isvector(y)&&isvector(z) | ) |
endif if | ( | ) |
function[xx, yy, zz] |
leny = length (y) |
lenz = length (z) |
yy = repmat (y(:), 1, length (x)) |