uchen
Computer
- Feb 27, 2005
- 4
Hi there!
I define the string for callback uicontrol like this:
K=1;
callbackStr = ['struktur(' K ')'];
h = uicontrol(h_fig, ...
'style', 'pushbutton', ...
'Units', 'char', ...
'position', pos, ...
'string', char(187), ...
'FontName', 'Helvetica', ...
'FontSize', 9, ...
'Tag', n,...
'callback', callbackStr);
Then Matlab gives error messages :
Error: Missing variable or function.
Error while evaluating uicontrol Callback.
Does somebody here have an idea, what did I do wrong?
Does anyone also know how to describe callbackStr for more than one parameter? Say it: K, L, M.
Thanks before hand,
Dina
I define the string for callback uicontrol like this:
K=1;
callbackStr = ['struktur(' K ')'];
h = uicontrol(h_fig, ...
'style', 'pushbutton', ...
'Units', 'char', ...
'position', pos, ...
'string', char(187), ...
'FontName', 'Helvetica', ...
'FontSize', 9, ...
'Tag', n,...
'callback', callbackStr);
Then Matlab gives error messages :
Error: Missing variable or function.
Error while evaluating uicontrol Callback.
Does somebody here have an idea, what did I do wrong?
Does anyone also know how to describe callbackStr for more than one parameter? Say it: K, L, M.
Thanks before hand,
Dina