Return filename parts
fileparts
Scilab function does not get file version but Matlab one does.
Scilab function can take a second input parameter specifying the output value we want to get saying: "path", "fname" or "extension".