ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
banner.m
Go to the documentation of this file.
1%> \brief
2%> Return a scalar MATLAB string containing the ParaMonte MATLAB library banner.
3%>
4%> \return
5%> ``str`` : The output scalar MATLAB string containing the ParaMonte MATLAB library banner.
6%>
7%> \interface{banner}
8%> \code{.m}
9%>
10%> str = pm.lib.banner();
11%>
12%> \endcode
13%>
14%> \example{banner}
15%> \include{lineno} example/lib/banner/main.m
16%> \output{banner}
17%> \include{lineno} example/lib/banner/main.out.m
18%>
19%> \final{banner}
20%>
21%> \author
22%> \JoshuaOsborne, May 21 2024, 8:01 PM, University of Texas at Arlington<br>
23%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
24%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute for Computational Engineering and Sciences (ICES), UT Austin<br>
25function str = banner()
26 verlen = pm.lib.version();
27 verlen = length(verlen{1});
28 offset = fix((verlen - 4) / 2);
29 bannerFile = fullfile(pm.lib.path.auxil(), ".paramonte.banner");
30 try
31 str = strrep(fileread(bannerFile), string(repmat(' ', 1, offset)) + "Version 0.0.0", "Version " + pm.lib.version());
32 str = newline + strrep(str, string(char(13)), "") + newline;
33 catch me
34 weblinks = pm.lib.weblinks;
35 warning ( newline ...
36 + string(me.identifier) + " : " + string(me.message) + newline ...
37 + "Failed to read the ParaMonte banner file: " ...
38 + newline ...
39 + pm.io.tab + bannerFile ...
40 + newline ...
41 + "The integrity of the ParaMonte library has been comprised. " ...
42 + newline ...
43 + "You can download a new or the latest version of the library from: " ...
44 + newline ...
45 + pm.io.tab + pm.web.href(weblinks.github.releases.latest.url) ...
46 + newline ...
47 );
48 str = "";
49 end
50end
function version(in silent)
Return a scalar MATLAB string containing the latest available ParaMonte MATLAB version newer than the...
function banner()
Return a scalar MATLAB string containing the ParaMonte MATLAB library banner.
function lib()
Return a scalar MATLAB string containing the path to the lib directory of the ParaMonte library packa...