No BSD License  

Highlights from
MATLAB for Engineers

from MATLAB for Engineers by Adrian Biran
Companion Software

fig1_11.m
%HYPERPAR produces Figure 1.11, Hyperbolic paraboloid in MATLAB 4.0.
%       As shown here, this M-file produces a file called FIG1_11.PS.
%       The equation is contained in the title. See book, Subsection 1.11.3.

x = -2: 0.1: 2; y = x;
[ X Y ] = meshgrid(x, y);
a = 1; b = 2; p = 1;
z = (-X.^2/a^2 + Y.^2/b^2)/(2*p);
mesh(z)
title('Hyperbolic paraboloid 2pz = (-x^2/a^2 + y^2/b^2)')
print -dps Fig1_11.ps

Contact us at files@mathworks.com