Draw multiple circles as a single line object

버전 1.1.0.1 (2.49 KB) 작성자: Brett Shoelson
FAST, EFFICIENT drawing of multiple circles!
다운로드 수: 985
업데이트 날짜: 2016/9/1

라이선스 보기

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).

인용 양식

Brett Shoelson (2024). Draw multiple circles as a single line object (https://www.mathworks.com/matlabcentral/fileexchange/36954-draw-multiple-circles-as-a-single-line-object), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.1

Updated license

1.1.0.0

Updated description, examples.

1.0.0.0