view aim-mat/gui/edit_scale.m @ 2:8bd33a2931a3

fixed email
author Stefan Bleeck <bleeck@soton.ac.uk>
date Fri, 20 May 2011 12:42:38 +0100
parents 74dedb26614d
children 20ada0af3d7d
line wrap: on
line source
% procedure for 'aim-mat'
% 
%   INPUT VALUES:
%  
%   RETURN VALUE:
%
% (c) 2011, University of Southampton
% Maintained and written by Stefan Bleeck (bleec@gmail.com)
% http://www.soton.ac.uk/aim


function handles=edit_scale(hObject, eventdata, handles)


curval=get(hObject,'String');
curval=str2num(curval);
handles.slideredit_scale=...
	slidereditcontrol_set_raweditvalue(handles.slideredit_scale,curval);


return



% strval=str2double(get(hObject,'String'));
% von=handles.data.min_scale;
% bis=handles.data.max_scale;
% if strval>bis
%     strval=bis;
% end
% if strval<von
%     strval=von;
% end
% val=f2f(strval,von,bis,0,1,'loglin');
% val=fround(val,3);
% set(handles.slider1,'Value',val);