From 9b06eaa3fd2d2aa86ec8052df6fc4cd0f170649a Mon Sep 17 00:00:00 2001 From: Jacques Grelet <jacques.grelet@ird.fr> Date: Tue, 31 Jan 2017 20:20:05 +0000 Subject: [PATCH] axes object has change with R2015 if verLessThan('matlab','8.4') XLim = get(hPlotAxes(1), 'XLim'); ind = find(tsg.DAYD > XLim(1) & tsg.DAYD < XLim(2)); else ind = find(tsg.DAYD > hPlotAxes(1).XLim(1) & ... tsg.DAYD < hPlotAxes(1).XLim(2) ); end --- tsgqc.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tsgqc.m b/tsgqc.m index f5cb869..48ea507 100644 --- a/tsgqc.m +++ b/tsgqc.m @@ -3451,8 +3451,13 @@ hrbInterpCancel = uicontrol( ... k = kml(tsg.CYCLE_MESURE); % get indice from the selected area - ind = find(tsg.DAYD > hPlotAxes(1).XLim(1) & ... + if verLessThan('matlab','8.4') + XLim = get(hPlotAxes(1), 'XLim'); + ind = find(tsg.DAYD > XLim(1) & tsg.DAYD < XLim(2)); + else + ind = find(tsg.DAYD > hPlotAxes(1).XLim(1) & ... tsg.DAYD < hPlotAxes(1).XLim(2) ); + end % Color value format must be passed as a character array according % to the format string 'AABBGGRR', eg: red = 'FF0000FF' -- GitLab