Plot a circle in 3D

The function plots a circle with user defined radius, position and direction

You are now following this Submission

This function needs three input parameters:
*Circle radius
*position of the circle midpoint
*vector perpendicular to the surface in which the circle is plotted.
With help of scatter3, the circle is plotted into the current axes and the handle for the new plot is returned to the user

Cite As

Andreas Schmid (2026). Plot a circle in 3D (https://ch.mathworks.com/matlabcentral/fileexchange/44047-plot-a-circle-in-3d), MATLAB Central File Exchange. Retrieved .

Categories

Find more on 2-D and 3-D Plots in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.3.0.0

V 1.1 :Updated as suggested by Atipong => scatter3 replaced by plot3, worked well in a first try

1.2.0.0

The finding of the second vector (v) has been simplified and is more stable now.

1.0.0.0