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 Center および File ExchangeDevelop 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