Skip to content
Snippets Groups Projects
Commit 623e10af authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

add test if Matlab version > R2014b

if verLessThan('matlab','8.4'), linkaxes failed if the 3 axes not defined
parent cd0aa3df
No related branches found
No related tags found
No related merge requests found
......@@ -15,10 +15,15 @@ set(hPlotAxes(3), 'Visible', 'on' );
drawnow
% The 3 axes will behave identically when zoomed and panned
% since R2016, linkaxes failed if the 3 axes not defined
% Since R2014b figure became an object, linkaxes failed if
% the 3 axes not defined
% ---------------------------------------------------------
if hPlotAxes(2).XLim(1) ~= 0 && hPlotAxes(3).XLim(1) ~= 0
if verLessThan('matlab','8.4')
linkaxes([hPlotAxes(1),hPlotAxes(2),hPlotAxes(3)], 'x');
end
else
if hPlotAxes(2).XLim(1) ~= 0 && hPlotAxes(3).XLim(1) ~= 0
linkaxes([hPlotAxes(1),hPlotAxes(2),hPlotAxes(3)], 'x');
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment