Home > matpower7.1 > mp-opt-model > lib > have_feature_catchme.m

have_feature_catchme

PURPOSE ^

HAVE_FEATURE_CATCHME Detect availability/version info for CATCH(ME) syntax.

SYNOPSIS ^

function [TorF, vstr, rdate] = have_feature_catchme()

DESCRIPTION ^

HAVE_FEATURE_CATCHME  Detect availability/version info for CATCH(ME) syntax.

   Feature detection function implementing 'catchme' tag for HAVE_FEATURE
   to detect support for CATCH ME syntax in TRY/CATCH constructs.

   See also HAVE_FEATURE, TRY, CATCH.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [TorF, vstr, rdate] = have_feature_catchme()
0002 %HAVE_FEATURE_CATCHME  Detect availability/version info for CATCH(ME) syntax.
0003 %
0004 %   Feature detection function implementing 'catchme' tag for HAVE_FEATURE
0005 %   to detect support for CATCH ME syntax in TRY/CATCH constructs.
0006 %
0007 %   See also HAVE_FEATURE, TRY, CATCH.
0008 
0009 %   MP-Opt-Model
0010 %   Copyright (c) 2004-2020, Power Systems Engineering Research Center (PSERC)
0011 %   by Ray Zimmerman, PSERC Cornell
0012 %
0013 %   This file is part of MP-Opt-Model.
0014 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0015 %   See https://github.com/MATPOWER/mp-opt-model for more info.
0016 
0017 vstr = '';
0018 rdate = '';
0019 if have_feature('octave')
0020     v = have_feature('octave', 'all');
0021     if v.vnum > 3.006
0022         TorF = 1;
0023         vstr = v.vstr;
0024         rdate = v.date;
0025     end
0026 else
0027     v = have_feature('matlab', 'all');
0028     if v.vnum > 7.004
0029         TorF = 1;
0030         vstr = v.vstr;
0031         rdate = v.date;
0032     end
0033 end

Generated on Fri 09-Oct-2020 11:21:31 by m2html © 2005