'perimeter' function giving error

1 Ansicht (letzte 30 Tage)
Carolyn
Carolyn am 5 Jun. 2018
Kommentiert: Carolyn am 5 Jun. 2018
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?

Akzeptierte Antwort

Steven Lord
Steven Lord am 5 Jun. 2018
You've created a variable named perimeter. Rename or delete that variable.
  1 Kommentar
Carolyn
Carolyn am 5 Jun. 2018
Oops! Didn't notice that. Thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Elementary Polygons finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by