Error using drawpolygon on UIAxes in MATLAB R2020b

I created a GUI using appdesigner in MATTLAB R2020a where I use the function drawpolygon to draw interactively on a UIAxes. This works fine.
However when I use MATLAB R2020b to run the GUI, it states following error when executing the drawpolygon function:
Undefined function 'drawpolygon' for input arguments of type 'matlab.ui.control.UIAxes'.
Error in NameFunction (line 43)
roi = drawpolygon(ax, 'Color','y','Tag','Outer limits');
As MATLAB R2020b has new features within other functions, I would like to use this version. How to solve this issue?
Additional information:
  • Creation UIAxes in appdesigner
  • Uploading image on UIAxes using GUI
  • Drawing polygon on the image on UIAxes

2 件のコメント

Bruno Luong
Bruno Luong 2020 年 11 月 2 日
Do you enter a valid licence with image processing toolbox while installing the 2020b?
Glenn van Vugt
Glenn van Vugt 2020 年 11 月 2 日
Thanks for you remark, Bruno. Apparently image processing toolbox wasn't installed.
Now it works! :)

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2020 年 11 月 2 日

コメント済み:

2020 年 11 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by