Home > matpower7.0 > mips > lib > mipsver.m

mipsver

PURPOSE ^

MIPSVER Prints or returns MIPS version info for current installation.

SYNOPSIS ^

function rv = mipsver(varargin)

DESCRIPTION ^

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

   See also MPVER.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function rv = mipsver(varargin)
0002 %MIPSVER  Prints or returns MIPS version info for current installation.
0003 %   V = MIPSVER returns the current MIPS version number.
0004 %   V = MIPSVER('all') returns a struct with the fields Name, Version,
0005 %   Release and Date (all strings). Calling MIPSVER without assigning the
0006 %   return value prints the version and release date of the current
0007 %   installation of MIPS.
0008 %
0009 %   See also MPVER.
0010 
0011 %   MIPS
0012 %   Copyright (c) 2010-2019, Power Systems Engineering Research Center (PSERC)
0013 %   by Ray Zimmerman, PSERC Cornell
0014 %
0015 %   This file is part of MIPS.
0016 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0017 %   See https://github.com/MATPOWER/mips for more info.
0018 
0019 v = struct( 'Name',     'MIPS', ... 
0020             'Version',  '1.3.1', ...
0021             'Release',  '', ...
0022             'Date',     '20-Jun-2019' );
0023 if nargout > 0
0024     if nargin > 0
0025         rv = v;
0026     else
0027         rv = v.Version;
0028     end
0029 else
0030     fprintf('%-22s Version %-9s  %11s\n', v.Name, v.Version, v.Date);
0031 end

Generated on Mon 24-Jun-2019 15:58:45 by m2html © 2005