view aim-mat/gui/edit_scale.m @ 0:74dedb26614d

Initial checkin of AIM-MAT version 1.5 (6.4.2011).
author tomwalters
date Fri, 20 May 2011 12:32:31 +0100
parents
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);