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 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