MATLAB date selection popup calendar for gui

前端 未结 3 1378
长情又很酷
长情又很酷 2021-01-18 13:46

Does anyone know of a method to display a popup date selection calendar in a MATLAB gui? I know the financial toolbox has a uicalendar function, but unfortunate

3条回答
  •  北海茫月
    2021-01-18 14:10

    I don't have much time for a more complete answer, unfortunately, but I'd try uitable to create a table and to define the CellSelectionCallback to get the date.

    Here's a bit to get you started:

    dates = calendar;
    dates(~any(dates,2),:) = [];
    fh = figure;
    uh = uitable('parent',fh,'data',dates,'ColumnWidth',repmat({20},1,7),...
                 'ColumnName',{'S','M','T','W','T','F','S'});
    

提交回复
热议问题