From 69f25b41dc410c11c1fd5a597f1e38a07e77cab2 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 12 Jul 2016 13:31:57 -0400 Subject: [PATCH] [Matlab] Fix default threshold value when displaying phase info At some point (after version 2014b), Matlab started passing an additional argument to 'display', which broke the logic for setting the default threshold. This caused all composition data to be excluded from the report shown by typing the name of the phase object. --- interfaces/matlab/toolbox/@ThermoPhase/display.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/matlab/toolbox/@ThermoPhase/display.m b/interfaces/matlab/toolbox/@ThermoPhase/display.m index c154b95e0..414fc6bc6 100644 --- a/interfaces/matlab/toolbox/@ThermoPhase/display.m +++ b/interfaces/matlab/toolbox/@ThermoPhase/display.m @@ -1,5 +1,5 @@ function display(self, threshold) -if nargin < 2 +if nargin < 2 || ~isnumeric(threshold) threshold = 1e-14; end phase_get(thermo_hndl(self), 15, 1, threshold);