[Master Index]
[Index for /tools/hpmatlab/toolbox/matlab/elmat]
meshdom
(/tools/hpmatlab/toolbox/matlab/elmat/meshdom.m)
Function Synopsis
[X,Y] = meshdom(x,y)
Help text
MESHDOM Generate X and Y arrays for 3-d plots.
This is an obsolete routine. Use the new MESHGRID instead.
Note: The MESHGRID with MATLAB Version 4.0 produces a Y which is
flipud(Y) of the Y from MESHDOM.
The usage remains the same and the mesh plots are the same if
Version 4.0 has been set to axis('ij').
[X,Y] = MESHDOM(x,y) transforms the domain specified by vectors
x and y into arrays X and Y that can be used for the evaluation
of functions of two variables and 3-d mesh and surface plots.
The rows of the output array X are copies of the vector x and
the columns of the output array Y are copies of the vector y.
For example, to evaluate and plot the function x*exp(-x^2-y^2)
over the range -2 < x < 2, -2 < y < 2,
[X,Y] = meshdom(-2:.2:2, -2:.2:2);
Z = X .* exp(-X.^2 - Y.^2);
mesh(Z)
Cross-Reference Information
This function calls
- length /tools/hpmatlab/toolbox/matlab/general/length.m
- ones /tools/hpmatlab/toolbox/matlab/elmat/ones.m
- size /tools/hpmatlab/toolbox/matlab/general/size.m
This function is called by
- rotate /tools/hpmatlab/toolbox/matlab/graphics/rotate.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON