How to place a uicalendar inside a panel

조회 수: 2 (최근 30일)
Cesar Daniel Castro
Cesar Daniel Castro 2020년 2월 19일
답변: Tyann Hardyn 2022년 1월 25일
Dear Community,
I am creating a GUI to modify start and end time from a time series. I am trying to place a uicalendar inside a uipanel. For this case, I have 2 panels:
Font = 'Corbel';
panel1 = uipanel('Title','Start Time','FontName',font,'FontSize',10,'Position',[.2 .075 .35 .85]);
panel2 = uipanel('Title','Stop Time','FontName',font,'FontSize',10,'Position',[.6 .075 .35 .85]);
And then, I am trying to insert the uicalendar like this:
uicalendar('Weekend', [1 0 0 0 0 0 1],'SelectionType',1,'DestinationUI',panel1)
uicalendar('Weekend', [1 0 0 0 0 0 1],'SelectionType',1,'DestinationUI',panel2)
but is not working. I am getting the calendar, but out of the panels
Can somebody help me?

답변 (3개)

Hiro Yoshino
Hiro Yoshino 2020년 2월 19일
How about using AppDesigner? There is a function available that looks able to meet your want.

Tyann Hardyn
Tyann Hardyn 2022년 1월 25일
Try to place the picked date in Editbox instead?

Tyann Hardyn
Tyann Hardyn 2022년 1월 25일
Try to place the picked date in Editbox instead?

카테고리

Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by