Home > matpower6.0 > most > mostver.m

mostver

PURPOSE ^

MOSTVER Prints or returns MOST version info for current installation.

SYNOPSIS ^

function rv = mostver(varargin)

DESCRIPTION ^

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

   See also MPVER.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function rv = mostver(varargin)
0002 %MOSTVER  Prints or returns MOST version info for current installation.
0003 %   V = MOSTVER returns the current MOST version number.
0004 %   V = MOSTVER('all') returns a struct with the fields Name, Version,
0005 %   Release and Date (all strings). Calling MOSTVER without assigning the
0006 %   return value prints the version and release date of the current
0007 %   installation of MOST.
0008 %
0009 %   See also MPVER.
0010 
0011 %   MOST
0012 %   Copyright (c) 2010-2016, Power Systems Engineering Research Center (PSERC)
0013 %   by Ray Zimmerman, PSERC Cornell
0014 %
0015 %   This file is part of MOST.
0016 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0017 %   See http://www.pserc.cornell.edu/matpower/ for more info.
0018 
0019 v = struct( 'Name',     'MOST', ... 
0020             'Version',  '1.0', ...
0021             'Release',  '', ...
0022             'Date',     '16-Dec-2016' );
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 Fri 16-Dec-2016 12:45:37 by m2html © 2005