# Drawing 3D Curves In MatLab(Illustrated Expression)

You can draw 2D graphs in Matlab and also you can draw 3D curves in Matlab. Drawig 3D curves has same logic with drawing 2D graphs. In here, we will explain how to draw 3D curves with ‘plot3()’ command in MatLab, with a very basic example below.

### How To Use ‘plot3()’ Command In MatLab?

Creating 3D curves in Matlab with plot3() command is very easy like above. You just need to know mathematical specifications to create 3D curves in 3D space.

First of all, you need to create a continuous vector in Matlab that, it will be the variable in other polynomials or equations. To create 3D curve, you need to have two equations that are dependent on created vector.

YOU CAN LEARN MatLab IN MECHANICAL BASE; Click And Start To Learn MatLab!

In here, we created a vector as shown by red arrow above. Then we created two of equations which are represented with variables ‘y’ and ‘z’ as shown by green arrows. These three elements will represent the point locations on 3D space.

Then we typed these three elements inside plot3() command respectively, as shown in green box above. The last element ‘k’ represents the type of curve to be drawn.