'perimeter' function giving error

I am getting an error when I run the example code for 'perimeter(polyin)'.
Here is the example code I open in matlab: openExample('matlab/PerimeterofPolygonExample')
I get the error: Function 'subsindex' is not defined for values of class 'polyshape'.
Anyone know why? Is there a toolbox I need to download to use this?

 采纳的回答

Steven Lord
Steven Lord 2018-6-5

0 个投票

You've created a variable named perimeter. Rename or delete that variable.

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Polygonal Shapes 的更多信息

产品

版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by