<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Federico</p>
<p>Yes, I thought that would be easier. But still not as good as it
could be, as it is difficult to use these function calls directly
in expressions. This is the way I think it should be done in
Scilab 6:</p>
<pre style="font-family:Monospaced;font-style:normal;font-size:12.0;"><span style="color:rgb(176,24,19);">function</span> <span style="color:rgb(131,67,16);font-weight:bold;">fp</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(0,0,0);text-decoration:underline;">fparts</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(131,67,16);font-weight:bold;">fid</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(74,85,219);">[</span><span style="color:rgb(0,0,0);">a</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">b</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">fpne</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">d</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">e</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(50,185,185);">file</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(131,67,16);font-weight:bold;">fid</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(74,85,219);">[</span><span style="color:rgb(0,0,0);">pathname</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">filename</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">extname</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(50,185,185);">fileparts</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">fpne</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(131,67,16);font-weight:bold;">fp</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(50,185,185);">list</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">fpne</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">pathname</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">filename</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">extname</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(176,24,19);">endfunction
</span></pre>
<pre style="font-family:Monospaced;font-style:normal;font-size:12.0;"><span style="color:rgb(174,92,176);text-decoration:underline;">fparts</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">fid</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(100,174,100);font-style:italic;">// full path/filename.ext</span>
<span style="color:rgb(174,92,176);text-decoration:underline;">fparts</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">fid</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">2</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(100,174,100);font-style:italic;">// path</span>
<span style="color:rgb(174,92,176);text-decoration:underline;">fparts</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">fid</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">3</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(100,174,100);font-style:italic;">// filename</span>
<span style="color:rgb(174,92,176);text-decoration:underline;">fparts</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">fid</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">4</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(100,174,100);font-style:italic;">// extension</span></pre>
Jan
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 2019-12-27 17:00 PM, Federico Miyara
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:c9bfd292-2249-1ee4-03a1-befe389658fa@fceia.unr.edu.ar">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<br>
<font face="Courier New">Jan,<br>
<br>
Oh, thanks! That's much better than dispfiles, since it gives
the name as a variable. I had seen that function but somehow I
didn't realize that possibility.<br>
<br>
Regards,<br>
<br>
Federico Miyara <br>
</font><br>
<br>
</blockquote>
</body>
</html>