user interface - Matlab How to Use uicalendar -
i trying use uicalendar create gui calendar allow user select date instead of having enter 1 manually. i've tried finding online on how use uicalendar found page on matlab's website
http://www.mathworks.com/help/finance/uicalendar-graphical-user-interface.html#f11-107599
whenever try using uicalendar, following message error message matlab:
error using uicalendar>validateparams (line 1549) undefined function 'parsepvpairs' input arguments of type 'cell'. error in uicalendar (line 136) [paramvalstruct, ~] = validateparams(nargin, varargin, paramnames); i not sure error message means or doing wrong. have tried entering "uicalendar" i've tried entering uicalendar inputs specify properties of uicalendar same error.
edit: have tried performing following example given on matlab's website:
function uicalendarguiexample f = figure('name','uicalendarguiexample'); datetexthandle = uicontrol(f,'style','text',... 'string','date',... 'horizontalalignment','left',... 'position',[100 200 50 20]); dateeditboxhandle = uicontrol(f,'style','edit',... 'position',[140 200 100 20],... 'backgroundcolor','w'); calendarbuttonhandle = uicontrol(f,'style','pushbutton',... 'string','select single date',... 'position',[275 200 200 20],... 'callback',@pushbutton_cb); function pushbutton_cb(hcbo,eventstruct) uicalendar('weekend',[1 0 0 0 0 0 1],... 'selectiontype',1,... 'destinationui',dateeditboxhandle); end end when run uicalendarguiexample , click on pushbutton gives following error:
undefined function 'uicalendar' input arguments of type 'char'. error in uicalendarguiexample/pushbutton_cb (line 19) uicalendar('weekend',[1 0 0 0 0 0 1],... error while evaluating uicontrol callback can try , copy , paste code , see if run similar issue?
thanks.
it turns out made date picker function need. have posted on matlab file exchange.
http://www.mathworks.com/matlabcentral/fileexchange/31387-datepicker
thanks everyone's help.
Comments
Post a Comment