mphsurf
Create plot data structure from surf data.
Syntax
pd = mphsurf(x,y,z)
pd = mphsurf(z)
Description
pd = mphsurf(x,y,z) creates the plot data structure pd from surf data x, y, and z.
pd = mphsurf(z) creates the plot data structure pd from surf data z. A unit scale is assumed for the x and y coordinates.
Example
Create random height data
[x,y] = meshgrid(-0.1:0.2:1.1,-0.4:0.2:0.4);
z = cumsum(0.1*randn(size(x)));
Create 3D surface plotdata structure
pd = mphsurf(x,y,z);
mphplot(pd)
See also
mphquad2tri, mphreadstl, mphwritestl