21.01.2015 Views

COMSOL Multiphysics™

COMSOL Multiphysics™

COMSOL Multiphysics™

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

line1, line2<br />

Purpose<br />

line1, line2<br />

Create polygons.<br />

Syntax<br />

Description<br />

c = line1(x,y)<br />

s = line2(x,y)<br />

s = line2(x,y) creates a 2D solid object s in the form of an solid polygon with<br />

vertices given by the vectors x and y.<br />

c = line1(x,y) creates a 2D curve object c in the form of an open polygon with<br />

vertices given by the vectors x and y.<br />

Examples<br />

The commands below create an open regular n-gon (n=11) and plot it.<br />

n = 11<br />

xy = exp(i*2*pi*linspace(0,1-1/n,n));<br />

l = line1(real(xy),imag(xy));<br />

geomplot(l)<br />

See Also<br />

arc1, arc2, circ1, circ2, ellip1, ellip2, geomcsg, poly1, poly2<br />

243

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!