We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7297326 + 0f20c6f commit 77c4a49Copy full SHA for 77c4a49
1 file changed
GUI/generalFunc/turnOffFigureSelection.m
@@ -16,11 +16,21 @@
16
% Contact: sandra.vanaert@uantwerpen.be
17
%--------------------------------------------------------------------------
18
19
+% Determine Matlab version for compatibility
20
+v = version('-release');
21
+v = str2double(v(1:4));
22
+
23
% First turn off zoom, pan and datacursor
24
h_pan = pan(h.fig);
25
h_zoom = [h.zoom.in;h.zoom.out];
26
h_cursor = datacursormode(h.fig);
27
h_cursor.removeAllDataCursors();
28
set(h_pan,'Enable','off')
29
set(h_cursor,'Enable','off')
-zoomAxinFig(h,'off')
30
31
+if v < 2019
32
+ zoomAxinFig(h,'off')
33
+else
34
+ h_z = zoom(h.fig);
35
+ h_z.Enable = 'off';
36
+end
0 commit comments