Draw multiple circles as a single line object

FAST, EFFICIENT drawing of multiple circles!
994 Downloads
Aktualisiert 1. Sep 2016

Lizenz anzeigen

Plot multiple circles as a single line object...very fast, very efficient!

SYNTAX:
circles(radii,centers) plots circles of radius values specified by RADII, at centers specified by CENTERS.
Will accept as inputs any valid properties accepted by PLOT, and return the handle to the line object as well as a vector of plotted xs and ys (delimeted by NaNs for individual circles).

EXAMPLE:

r = rand(20,1)*100;
c = rand(20,2)*300;
[h,xs,ys] = circles(r,c,...
'color','r','linewidth',2);
axis equal

Note that if r is a scalar and c is a single x-y- coordinate, this works just like other approaches to circle plotting. But with multiple radii and centers, using CIRCLES provide FAST, memory-efficient plotting (with the trade-off that only a single handle is returned).

Zitieren als

Brett Shoelson (2026). Draw multiple circles as a single line object (https://de.mathworks.com/matlabcentral/fileexchange/36954-draw-multiple-circles-as-a-single-line-object), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2012a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und MATLAB Answers
Version Veröffentlicht Versionshinweise
1.1.0.1

Updated license

1.1.0.0

Updated description, examples.

1.0.0.0