drawfreehand in App Designer ?

16 ビュー (過去 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 件のコメント
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 件のコメント
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?

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

カテゴリ

Find more on Maintain or Transition figure-Based Apps in Help Center and File Exchange

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by