MATLAB Answers

App Designer - error using the function 'drawpoint' :

5 views (last 30 days)
Lavanya Baskaran
Lavanya Baskaran on 26 Oct 2020
Commented: Lavanya Baskaran on 26 Oct 2020
Hi all,
I am working on App Designer, and found a issue with the function 'drawpoint'. Initially I was using MATLAB 2019b, in which i got the below error when using 'drawpoint' property 'LabelAlpha'.
Unrecognized property 'LabelAlpha' for class 'images.roi.Point'.
Then I downloaded MATLAB 2020b, thinking it might be MATLAB version issue, but now I get the below error:
Undefined function 'drawpoint' for input arguments of type 'matlab.ui.control.UIAxes'.
This is my code :
roi = drawpoint(app.UIAxes2,'Color','g');
Pon = roi.Position;
roi.Label = num2str(Pon,3);
roi.LabelAlpha = 0;
Not sure of what is the problem. Awaiting your help.
Thank you.

  0 Comments

Sign in to comment.

Answers (1)

Mario Malic
Mario Malic on 26 Oct 2020
Edited: Mario Malic on 26 Oct 2020
See attached demo file, there should be no issues with your code. Press button to select ROI.

  2 Comments

Lavanya Baskaran
Lavanya Baskaran on 26 Oct 2020
Thank you Mario Malic for the reply, I still get the same error even after running the file 'Demo.mlapp'. I think the problem is not with the code.
Lavanya Baskaran
Lavanya Baskaran on 26 Oct 2020
Sorry guys, the problem was that the image processing toolbox did not get downloaded when i updated MATLAB 2019b to 2020b.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!