# Drawing 3D Curves In MatLab®(Illustrated Expression)

You can draw 2D graphs in Matlab® and also you can draw 3D curves in Matlab®. Drawing 3D curves has the same logic as drawing 2D graphs. Here, we will explain how to draw 3D curves with the ‘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 continuousvector in Matlab® that, will be the variable in other polynomials or equations. To create a 3D curve, you need to have two equations that are dependent on the created vector.

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

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

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