📄 measure_done.m
字号:
% measure_done.m%% Clean up.function measure_doneglobal meas;% Make pointer a watch so the user knows there's something going on.ptr = get(meas.fig.h, 'Pointer');set(meas.fig.h, 'Pointer', 'watch');% Restore callbacksset(meas.fig.h, 'WindowButtonMotionFcn', meas.WindowButtonMotionFcn)set(meas.fig.h, 'WindowButtonDownFcn', meas.WindowButtonDownFcn);set(meas.fig.h, 'ResizeFcn', meas.ResizeFcn);set(meas.fig.h, 'KeyPressFcn', meas.KeyPressFcn);set(meas.fig.h, 'Interruptible', meas.Interruptible);set(meas.fig.h, 'BusyAction', meas.BusyAction);set(meas.fig.h, 'DoubleBuffer', meas.DoubleBuffer);% Remove marker objectsif isfield(meas, 'cursor') % Delete old coordinate label, if it exists if meas.cursor.texth delete(meas.cursor.texth); meas.cursor.texth = []; end % Delete old marker, if it exists if meas.cursor.markerh delete(meas.cursor.markerh); meas.cursor.markerh = []; end % Delete old rubber band, if it exists if isfield(meas.cursor, 'rubberh') if meas.cursor.rubberh delete(meas.cursor.rubberh); meas.cursor.rubberh = []; end endend% Restore the axes' old Xdata & Ydata from previous truncationfor axi = 1:length(meas.ax) for l = 1:length(meas.ax(axi).line) set(meas.ax(axi).line(l).h, 'Xdata', meas.ax(axi).line(l).xorig); set(meas.ax(axi).line(l).h, 'Ydata', meas.ax(axi).line(l).yorig); endend% Restore pointer shapeset(meas.fig.h, 'Pointer', ptr);clear global meas;hold off;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -