Home > vbmeg > external > iso2mesh > iso2meshver.m

iso2meshver

PURPOSE ^

SYNOPSIS ^

function [major,minor,patchnum,extra]=iso2meshver

DESCRIPTION ^

 [major,minor,patchnum,extra]=iso2meshver
      or
 v=iso2meshver

 get the version number of iso2mesh toolbox

 author: Qianqian Fang, <q.fang at neu.edu>

 output:
    if you ask for a single output:
      v: a string denotes the current version number; the string is 
       typically in the following format: "major.minor.patch-extra"
       where major/minor/patch are typically integers, and extra can
       be an arbitrary string and is optional
    if you ask for 4 outputs:
     [major,minor,patchnum,extra] are each field of the version string

 -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [major,minor,patchnum,extra]=iso2meshver
0002 %
0003 % [major,minor,patchnum,extra]=iso2meshver
0004 %      or
0005 % v=iso2meshver
0006 %
0007 % get the version number of iso2mesh toolbox
0008 %
0009 % author: Qianqian Fang, <q.fang at neu.edu>
0010 %
0011 % output:
0012 %    if you ask for a single output:
0013 %      v: a string denotes the current version number; the string is
0014 %       typically in the following format: "major.minor.patch-extra"
0015 %       where major/minor/patch are typically integers, and extra can
0016 %       be an arbitrary string and is optional
0017 %    if you ask for 4 outputs:
0018 %     [major,minor,patchnum,extra] are each field of the version string
0019 %
0020 % -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)
0021 %
0022 
0023 major=1;
0024 minor=5;
0025 patchnum=0;
0026 extra='$Rev::     $';
0027 extra=regexprep(extra,'[\s$:]', '');
0028 
0029 iso2meshvstr=sprintf('%d.%d.%d',major,minor,patchnum);
0030 if(~isempty(extra))
0031    iso2meshvstr=[iso2meshvstr '-' extra];
0032 end
0033 
0034 if(nargout==0)
0035    fprintf(1,'iso2mesh toolbox version: %s\n',iso2meshvstr);
0036    clear major;
0037 elseif(nargout==1)
0038    major=iso2meshvstr;
0039 elseif(nargout~=4)
0040    error('you need to return either 1 or 4 output variables');
0041 end

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005