From fd56f18c74492d19fcd116e903b365551083133b Mon Sep 17 00:00:00 2001 From: shaharz Date: Tue, 20 Sep 2016 17:05:43 -0400 Subject: [PATCH] Get rid of deprecated UseHG2 feature MATLAB 2016b throws an error on `feature('UseHG2')`: ``` Error using feature UseHG2 will be removed in a future release. Use ~verLessThan('matlab','8.4.0') instead. Error in isHG2 (line 3) check = feature('UseHG2'); Error in plotlyfig/update (line 517) if isHG2 Error in plotlyfig (line 203) obj.update; Error in fig2plotly (line 44) p = plotlyfig(varargin{:}); ``` Fixes #97. --- plotly/plotlyfig_aux/helpers/isHG2.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plotly/plotlyfig_aux/helpers/isHG2.m b/plotly/plotlyfig_aux/helpers/isHG2.m index 34381db6..770bf28e 100644 --- a/plotly/plotlyfig_aux/helpers/isHG2.m +++ b/plotly/plotlyfig_aux/helpers/isHG2.m @@ -1,4 +1,4 @@ function check = isHG2 %check for HG2 update -check = feature('UseHG2'); -end \ No newline at end of file +check = ~verLessThan('matlab','8.4.0'); +end