Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Add `polyshape`

boundary

`polyout = addboundary(polyin,x,y)`

`polyout = addboundary(polyin,P)`

`polyout = addboundary(polyin,{x1,x2,...,xM},{y1,y2,...,yM})`

`polyout = addboundary(___,Name,Value)`

`polyout = addboundary(`

adds `polyin`

,`{x1,x2,...,xM}`

,`{y1,y2,...,yM}`

)*M* boundaries, where the vectors of
*x*-coordinates for each boundary are listed together in a cell
array. The corresponding vectors of *y*-coordinates also are listed
together in a cell array. Each *x _{i}* must
have the same length as the corresponding

`polyout = addboundary(___,`

specifies additional parameters for adding boundaries to a
`Name,Value`

)`polyshape`

for any of the previous syntaxes.