diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-09-20 00:28:10 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-09-20 00:28:32 -0400 |
commit | 80e58926c1f2a7e5701b43cffddd76ba08aafe49 (patch) | |
tree | a49f3b0921bf62099e5e5e47812d69dc3b23e45a /gui_win.m | |
parent | b6d7cf310a8be9496348200ed52d283c1ce7707b (diff) | |
download | beam_profiler-80e58926c1f2a7e5701b43cffddd76ba08aafe49.tar.gz beam_profiler-80e58926c1f2a7e5701b43cffddd76ba08aafe49.zip |
check_bound moved to separate function
Diffstat (limited to 'gui_win.m')
-rw-r--r-- | gui_win.m | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -774,22 +774,6 @@ else end; -function [x,adjusted]=check_bound(x,xleft,xright) -% check if number out of bound and then assign it to the mid of the region -if xleft > xright - % sanity check for bounds - tmp=xright; - xright=xleft; - xleft=tmp; -end -if x<xleft || x>xright - x=(xleft+xright)/2; - adjusted = true; -else - adjusted = false; -end - - %To show the cross on the screen we need to get its coordinates % --- Executes on button press in showcross. function showcross_Callback(hObject, eventdata, handles) |