matlab drawing (2) three-dimensional image mathematics knowledge supplement

In the last issue, I shared matlab to draw two-dimensional images. Today I will introduce matlab to draw three-dimensional images. Before the introduction, first supplement the knowledge of point space analytic geometry.

1. Supplementary mathematics knowledge

The parametric equation for a surface in space contains two parameters:

\left\{\begin{matrix} x=x(u,v)& & \\ y=y(u,v) & & \\ z=z(u,v) & & \end{matrix}\right.

The general equation for a surface in space is

F=F(x,y,z)

According to the knowledge of analytic geometry, the types of quadric surfaces can be studied according to the plane section method and compression method. The quadric surfaces can be divided into the following types:

(1) Ellipsoid

\frac{x^2}{a^2}+\frac{y^2}{b^2}+\frac{z^2}{c^2}=1

(2) Single-leaf hyperboloid (figure obtained by compressing the xz plane with coefficient b/a  \frac{x^2}{a^2}+\frac{y^2}{a^2}-\frac{z^2}{c^2}=1  from )

\frac{x^2}{a^2}+\frac{y^2}{b^2}-\frac{z^2}{c^2}=1

(3) Double-leaf hyperboloid (a graphic obtained by compressing the double-leaf rotating hyperboloid  \frac{x^2}{a^2}+\frac{y^2}{a^2}-\frac{z^2}{c^2}=-1  on xz plane with a coefficient of b/a)

\frac{x^2}{a^2}+\frac{y^2}{b^2}-\frac{z^2}{c^2}=-1

(4) Elliptical paraboloid (  \frac{x^2}{a^2}+\frac{y^2}{a^2}=2z   the graph obtained by compressing the xz plane of the rotating paraboloid with a coefficient of b/a)

\frac{x^2}{a^2}+\frac{y^2}{b^2}=2z

(5) Hyperbolic paraboloid (saddle surface)

\frac{x^2}{a^2}-\frac{y^2}{b^2}=2z

Continue to share matlab surface mapping in the next issue

Guess you like

Origin blog.csdn.net/higerwy/article/details/129401102