Prev: Changing GUI Values from seperate (non GUI) .m file
Next: Set simulink model parameters using GUI? ?
From: Elena Drozdova on 31 May 2010 14:16 Hello! Help me please. I use graphical calendar "uicalendar". I need to chose several dates. After I sent them to editable text field "days", I can get from it only сharacter string with type char istead of array of dates. How to fix this problem? days=uicontrol('Style', 'Edit'); function pushbutton_cb_date(hcbo, eventStruct) uicalendar('Weekend', [1 0 0 0 0 0 1], ... 'SelectionType', 0, ... 'DestinationUI', days); end get(days, 'String') Matlab Help says the argument 'DestinationUI' has two values: H — Scalar or vector of the destination object's handles. The default UI property that is populated with the date(s) is 'string'. {H, {Prop}} — Cell array of handles and the destination object's UI properties. H must be a scalar or vector and Prop must be a single property string or a cell array of property strings. |