for example:
function togglebutton1_Callback(hObject, eventdata, handles)
x = inputdlg('Enter space-separated numbers:', 'points', [1 50]);
datax = str2num(x{:});
function togglebutton2_Callback(hObject, eventdata, handles)
how to pass datax value to togglebutton2_Callback (to print datax pushing togglebutton2 for example)?