フィルターのクリア

save the date by gui

2 ビュー (過去 30 日間)
Khaled Al-Faleh
Khaled Al-Faleh 2017 年 5 月 1 日
コメント済み: Khaled Al-Faleh 2017 年 5 月 2 日
Hi guys I used the command uicalendar to determine the date but I want to save this date in variable ... I used this
a = uicalendar
but it doesn't save the date in variable a its just gave the properties..

採用された回答

Jan
Jan 2017 年 5 月 2 日
編集済み: Jan 2017 年 5 月 2 日
Did you read the documentation of uicalendar? See the example: You have to create a text uicontrol at first. The contents of the text field is set to the selected date directly.
To store the output in a variable, you need a wrapper function, which creates the text field at first and removes it afterwards:
FigH = figure('visible', 'off')
TextH = uicontrol(FigH, 'Style', 'text');
CalH = uicalendar('DestinationUI', {TextH, 'String'});
uiwait(CalH);
Date = get(TextH, 'String')
delete(FigH);
Does this work? I do not have the Financial Toolbox, therefore I cannot test this.
Alternatively, you can use a date picker from the FileExchange, e.g. the nice FEX: uigetdate or FEX: calendargui.
  1 件のコメント
Khaled Al-Faleh
Khaled Al-Faleh 2017 年 5 月 2 日
yes its work sir Thanks alot

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCalendar についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by