MATLAB日期选择弹出日历gui [英] MATLAB date selection popup calendar for gui

查看:709
本文介绍了MATLAB日期选择弹出日历gui的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道在MATLAB gui中显示弹出日期选择日历的方法吗?我知道金融工具箱有一个 uicalendar 函数,但很遗憾,我没有这个工具箱。

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 unfortunately I don't have that toolbox.

一个hunch我将不得不使用一些Java或其他语言为这一个,我不知道什么。

I have a hunch I'm going to have to use some Java or some other language for this one, which I know nothing about.

我在寻找类似的东西:

I'm looking for something similar to this:

这会在用户选择日期后返回一个日期字符串。

which would return a date string after the user selects the date.

推荐答案

时间为更完整的答案,不幸的是,但我会尝试 uitable 创建一个表,并定义 CellSelectionCallback

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'});

这篇关于MATLAB日期选择弹出日历gui的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆