Method on @sym: ezmesh (z)
Method on @sym: ezmesh (f1, f2, f3)
Method on @sym: ezmesh (…, dom)
Method on @sym: ezmesh (…, N)

Simple 3D wireframe mesh plots of symbolic expressions.

Example 3D surface mesh plot:

syms x y
z = sin(2*x)*sin(y)
  ⇒ z = (sym) sin(2⋅x)⋅sin(y)
ezmesh(z)                                    % doctest: +SKIP

Example parametric mesh of a Möbius strip:

syms u v
x = (1+v*cos(u/2))*cos(u)
  ⇒ x = (sym)
      ⎛     ⎛u⎞    ⎞
      ⎜v⋅cos⎜─⎟ + 1⎟⋅cos(u)
      ⎝     ⎝2⎠    ⎠
y = (1+v*cos(u/2))*sin(u);
z = v*sin(u/2);

ezmesh(x, y, z, [0 2*pi -0.5 0.5], 32)       % doctest: +SKIP
axis equal

See help for the (non-symbolic) ezmesh, which this routine calls after trying to convert sym inputs to anonymous functions.

See also: ezmesh, @sym/ezsurf, @sym/ezplot, @sym/function_handle.

Package: symbolic