ファイルの集合の中で最新のファイルを返す
k = newest(paths) k = newest(path1, path2, ..., pathn)
整数: 最新のファイルの添字
文字列ベクトル, paths(i) はi番目のファイルの名前
paths(i)
i
文字列, i番目のファイルのパス名
パス名の集合を指定すると,newestは, 最新のファイルの添字を返します. 存在しないファイルは最も古いと仮定されます.
newest
newest('SCI/modules/graphics/macros/bode.sci','SCI/modules/graphics/macros/bode.bin') newest(['SCI/modules/graphics/macros/bode.sci','SCI/modules/graphics/macros/bode.bin']) newest('SCI/modules/graphics/macros/bode.'+['sci','bin'])