From 1e08d7499cbf4ae6c2efbbc6985e8855ad47d3a4 Mon Sep 17 00:00:00 2001 From: EmilAtz Date: Thu, 8 Dec 2016 14:19:50 -0500 Subject: [PATCH] Deprecation of MatLab importPhase function Addition of comments in importPhase to warn for function deprecation. --- interfaces/matlab/toolbox/importPhase.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interfaces/matlab/toolbox/importPhase.m b/interfaces/matlab/toolbox/importPhase.m index c3456c904..363b70d0c 100644 --- a/interfaces/matlab/toolbox/importPhase.m +++ b/interfaces/matlab/toolbox/importPhase.m @@ -1,6 +1,7 @@ function s = importPhase(file, name) % IMPORTPHASE Import a phase from a CTI file % s = importPhase(file, name) +% Deprecated. To be removed after Cantera 2.3. % See :ref:`sec-phases`. % % See also: :mat:func:`Solution` @@ -13,6 +14,7 @@ function s = importPhase(file, name) % Instance of class :mat:func:`Solution` % +warning('This function is deprecated and will be removed after Cantera 2.3. Use Solution instead'); if nargin == 1 s = Solution(file); elseif nargin == 2