How to do cla reset UIAxes in ML2021a
34 ビュー (過去 30 日間)
古いコメントを表示
Until MatLab 2020a I used to code this to reset the axes of a plot in AppDesigner code:
app.UIAxes.cla('reset');
but unfortunately in MatLab 2021a this command doesn't work anymore. How can I do the same in R2021a?
Thanks! :)
0 件のコメント
採用された回答
Adam Danz
2021 年 5 月 12 日
On what version of Matlab has that syntax ever worked? Even on regular axes, the error message appear.
fig = figure('Visible','off'); % visible=off to simplify the display
ax = axes(fig);
ax.cla
Instead, use
cla(app.UIAxes, 'reset')
1 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Graphics Object Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!