HAVE_FEATURE_ISEQUALN Detect availability/version info for ISEQUALN Feature detection function implementing 'isequaln' tag for HAVE_FEATURE to detect support for ISEQUALN function. See also HAVE_FEATURE, ISEQUALN.
0001 function [TorF, vstr, rdate] = have_feature_isequaln() 0002 %HAVE_FEATURE_ISEQUALN Detect availability/version info for ISEQUALN 0003 % 0004 % Feature detection function implementing 'isequaln' tag for HAVE_FEATURE 0005 % to detect support for ISEQUALN function. 0006 % 0007 % See also HAVE_FEATURE, ISEQUALN. 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 TorF = exist('isequaln') ~= 0; 0018 if TorF 0019 if have_feature('matlab') 0020 %% introduced after 7.10 (R2010a) and by 7.14 (R2012a) 0021 v = have_feature('matlab', 'all'); 0022 else 0023 %% introduced in Octave 4.4 (not in 4.2.2) 0024 v = have_feature('octave', 'all'); 0025 end 0026 vstr = v.vstr; 0027 rdate = v.date; 0028 else 0029 vstr = ''; 0030 rdate = ''; 0031 end