'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.

1 件のコメント

Carolyn
Carolyn 2018 年 6 月 5 日
Oops! Didn't notice that. Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeElementary Polygons についてさらに検索

製品

リリース

R2018a

質問済み:

2018 年 6 月 5 日

コメント済み:

2018 年 6 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by