drawfreehand in App Designer ?

조회 수: 7 (최근 30일)
moon215
moon215 2019년 5월 15일
댓글: Narendra Narisetti 2021년 3월 30일
Hi,
I want to add a freehand draw in my app, with :
d = drawfreehand(app.UIAxes_1,'color','green');
But i have this error:
Error using images.roi.internal.ROI/parseInputs
ROI parent must be a valid Axes object.
Error in images.roi.Freehand
So how can i use drawfreehand in App Designer ?
Thanks a lot in advance.

채택된 답변

Saumya Goel
Saumya Goel 2019년 5월 23일
At this time, the "drawfreehand" function only takes an 'axes' objects as an argument, not 'UIAxes', the type of axes that are used in App Designer. More information about the valid arguments for 'drawfreehand' can be found on this documentation page:
  댓글 수: 2
Stanley Strawbridge
Stanley Strawbridge 2019년 8월 8일
So is there a way to draw a roi on an image in the UIAxes in App designer?
Sean de Wolski
Sean de Wolski 2019년 8월 8일
See my answer below.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Sean de Wolski
Sean de Wolski 2019년 8월 8일
It's kind of silently supported but you can programmatically (>=R2018b) add an axes to a uifigure and then draw* will work.
ax = axes('Parent', uifigure)
drawfreehand(ax)
  댓글 수: 5
Andrew Keefe
Andrew Keefe 2021년 2월 12일
Is this with the latest version? I'm running R2020A.
Narendra Narisetti
Narendra Narisetti 2021년 3월 30일
Hi, I am also looking for sam solution. When I use uiaxes matlab taing long time and not responding. @Sean de Wolski, could you provide a solution how to develop free hand on ap designer?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Develop uifigure-Based Apps에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by