app designer UIAxes plot

3 visualizaciones (últimos 30 días)
lenwen lin
lenwen lin el 29 de Abr. de 2020
Editada: Adam Danz el 4 de Mayo de 2020
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 comentario
Geoff Hayes
Geoff Hayes el 29 de Abr. de 2020
lenwen - wouldn't you have added an uiaxes to your app and perhaps accessible via app.UiAxes?

Iniciar sesión para comentar.

Respuestas (1)

Adam Danz
Adam Danz el 29 de Abr. de 2020
Editada: Adam Danz el 4 de Mayo de 2020
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

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by