Home > matpower5.1 > extras > sdp_pf > sdp_pf_ver.m

sdp_pf_ver

PURPOSE ^

SPD_PF_VER Prints or returns SDP_PF version info for current installation.

SYNOPSIS ^

function rv = sdp_pf_ver(varargin)

DESCRIPTION ^

SPD_PF_VER  Prints or returns SDP_PF version info for current installation.
   V = SDP_PF_VER returns the current SDP_PF version number.
   V = SDP_PF_VER('all') returns a struct with the fields Name, Version,
   Release and Date (all strings). Calling SDP_PF_VER without assigning the
   return value prints the version and release date of the current
   installation of SDP_PF.

   See also MPVER.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function rv = sdp_pf_ver(varargin)
0002 %SPD_PF_VER  Prints or returns SDP_PF version info for current installation.
0003 %   V = SDP_PF_VER returns the current SDP_PF version number.
0004 %   V = SDP_PF_VER('all') returns a struct with the fields Name, Version,
0005 %   Release and Date (all strings). Calling SDP_PF_VER without assigning the
0006 %   return value prints the version and release date of the current
0007 %   installation of SDP_PF.
0008 %
0009 %   See also MPVER.
0010 
0011 %   MATPOWER
0012 %   Copyright (c) 2014-2015 by Power System Engineering Research Center (PSERC)
0013 %   by Ray Zimmerman, PSERC Cornell
0014 %
0015 %   $Id: sdp_pf_ver.m 2644 2015-03-11 19:34:22Z ray $
0016 %
0017 %   This file is part of MATPOWER.
0018 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0019 %   See http://www.pserc.cornell.edu/matpower/ for more info.
0020 
0021 v = struct( 'Name',     'SDP_PF', ... 
0022             'Version',  '1.0', ...
0023             'Release',  '', ...
0024             'Date',     '17-Jan-2014' );
0025 if nargout > 0
0026     if nargin > 0
0027         rv = v;
0028     else
0029         rv = v.Version;
0030     end
0031 else
0032     fprintf('%-22s Version %-9s  %11s\n', v.Name, v.Version, v.Date);
0033 end

Generated on Fri 20-Mar-2015 18:23:34 by m2html © 2005