Plot a circle in 3D

The function plots a circle with user defined radius, position and direction
1K Downloads
Updated 9 Dec 2014

View License

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 (2024). Plot a circle in 3D (https://www.mathworks.com/matlabcentral/fileexchange/44047-plot-a-circle-in-3d), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on 2-D and 3-D Plots in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
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