|
"John" <sjohn@cnbc.cmu.edu> wrote in message <h041i1$jf5$1@fred.mathworks.com>...
> What are you doing with the 'input' variable ?
> Are you getting an error message ? Paste it her.
> Are Width_editText and Height_editText the 'tag' property values of your edit boxes ? If yes,Check in the property inspector if you have the tag property set to this or not ?
I'm trying to use the value from the String of the edit text box to determine the size of a plot.
When I do it one variable at a time, it works.
function Width_callback(hObject,eventdata,handles)
W = str2num(get(hObject,'String'))
set(hAx, 'Units','centimeters',...
'Position',[1,1,W,20],...
'XLim',[0,W],'XTick',0:.5:W,...
'YGrid','on');
axis equal
end
But I would like to determine the position with two separate variables, and the other one is stored in a different callback. I can't figure out how to turn W into a handle so that I can use it after the end of this callback function.
|