1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
6
<TYPE>Scilab Function</TYPE>
8
<SHORT_DESCRIPTION name="newest"> returns newest file of a set of files</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>k=newest(paths) </CALLING_SEQUENCE_ITEM>
11
<CALLING_SEQUENCE_ITEM>k=newest(path1,path2,...,pathn) </CALLING_SEQUENCE_ITEM>
16
<PARAM_NAME>k</PARAM_NAME>
18
<SP>: the index of the newest file</SP>
22
<PARAM_NAME>paths</PARAM_NAME>
24
<SP>: a character string vector (or list), paths(i) is the pathname of ith file</SP>
28
<PARAM_NAME>pathi</PARAM_NAME>
30
<SP>: a character string, the pathname of ith file</SP>
37
Given a set of pathnames newest returns the index of the newest
38
one. Non existant files are supposed to be the oldest.</P>
42
newest('SCI/macros/xdess/bode.sci','SCI/macros/xdess/bode.bin')
43
newest('SCI/macros/xdess/bode.'+['sci','bin'])