geometrical figure as string
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Labels and Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!