app designer UIAxes plot

3 次查看(过去 30 天)
lenwen lin
lenwen lin 2020-4-29
编辑: Adam Danz 2020-5-4
app.Image.ImageSource = data;
hold(uiaxes,'on')
plot....
the code is above, I want to add a plot in the image, but how to determine the "UIAxes" ?
for help
thank you
  1 个评论
Geoff Hayes
Geoff Hayes 2020-4-29
lenwen - wouldn't you have added an uiaxes to your app and perhaps accessible via app.UiAxes?

请先登录,再进行评论。

回答(1 个)

Adam Danz
Adam Danz 2020-4-29
编辑:Adam Danz 2020-5-4
You have the right idea to specify an axis handle but it looks like you're not using the handle.
uiax = uiaxes(); % Create the UIAxes, store the handle.
hold(uiax, 'on') % specify the UIAxes
plot(uiax, x, y) % specify the UIAxes

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by