필터 지우기
필터 지우기

how create graph in uitable in the app designer (using code)

조회 수: 2 (최근 30일)
aldo
aldo 2023년 10월 25일
댓글: aldo 2023년 10월 26일
hi,
i've this data:
app.GridLayout
app.TabGroupQ1
can i create graph (as pics) using code?

채택된 답변

Voss
Voss 2023년 10월 25일
You want to create an empty axes (with an xlabel, ylabel, and title) inside a specified tab?
ax = axes(tab); % tab is the tab you want the axes to be created in
xlabel(ax,'X')
ylabel(ax,'Y')
title(ax,'Title')
  댓글 수: 3
Voss
Voss 2023년 10월 26일
편집: Voss 2023년 10월 26일
axes Units are 'normalized' by default. If you want to use pixel units, set the axes Units to 'pixels' before setting the Position, e.g., when the axes is created:
ax = axes(tab,'Units','pixels'); % tab is the tab you want the axes to be created in
ax.Position = [11 11 1513 832];
Of course you could set both the Units and Position when the axes is created (Units first still)
ax = axes(tab, ...
'Units','pixels', ...
'Position',[11 11 1513 832]);
Another option is to use a uiaxes instead of an axes. uiaxes' default Units is 'pixels'.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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