geometrical figure as string
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello,
The following code generates a dashed circle, with a solid semi-circle on top of it.
clear all
r1=1;
theta1=linspace(0,2*pi,100);
ox1=0;oy1=0;
x1=ox1+r1*cos(theta1);
y1=oy1+r1*sin(theta1);
r2=0.5;
theta2=linspace(pi/2,3*pi/2,50);
ox2=0;oy2=r1+r2;
x2=ox2+r2*cos(theta2);
y2=oy2+r2*sin(theta2);
figure;
hold on
plot(x1,y1,'--')
plot(x2,y2,'-')
grid('off')
axis('equal')
axis('off')
Is it possible to use this code somehow, and to use the figure obtained by it as a string entity? That is, if the generated figure is 'f', then
str{1}='f'
should give the above figure.
Thanks. It cannot be a figure though ...
댓글 수: 2
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Labels and Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!