How to plot a cell in App Designer?

1 回表示 (過去 30 日間)
Weronika Kubarek
Weronika Kubarek 2021 年 3 月 31 日
回答済み: Reshma Nerella 2021 年 4 月 4 日
Hello,
I made a plot from cell in Matlab and I want to move it to App Designer on one of my UIAxes, but I can create only a new figure with plot.
The way I made plot in Matlab:
figure('Name','test')
hold on
p = cellfun(@plot,s);
Thanks in advance!

回答 (1 件)

Reshma Nerella
Reshma Nerella 2021 年 4 月 4 日
Hi,
If you want to plot in App Designer,
  1. You need to create an UIAxes in the UIFigure of the App.
  2. Plot the data in the UIaxes created.
So in your case, create an UIaxes, loop over your cell array or the specific cells you want to plot, and set 'hold on' for the axes if required.
Hope this helps!

カテゴリ

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