<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 28/11/2012 20:16, julien.langouet a
écrit :<br>
</div>
<blockquote cite="mid:1354130177632-4025363.post@n3.nabble.com"
type="cite">
<pre wrap="">.../..
My question is : How can I display or create a matrix with the time in a
different format? I would like to have the time displayed in this kind of
format hh:mm:ss,ms for exemple : 01:15:36,4 ...
Is this possible?
</pre>
</blockquote>
Something like the following:<br>
<pre style="font-family:Monospaced;font-style:normal;font-size:13.0;"><big><big><span style="color:rgb(0,0,0);">t</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(188,143,143);">3600271</span><span style="color:rgb(0,0,0);">; // ms</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);">M</span><span style="color:rgb(0,0,0);">, </span><span style="color:rgb(0,0,0);">J</span><span style="color:rgb(0,0,0);">, </span><span style="color:rgb(0,0,0);">h</span><span style="color:rgb(0,0,0);">, </span><span style="color:rgb(0,0,0);">mn</span><span style="color:rgb(0,0,0);">, </span><span style="color:rgb(0,0,0);">s</span><span style="color:rgb(74,85,219);">] </span><span style="color:rgb(92,92,92);">= </span><span style="color:rgb(174,92,176);text-decoration:underline;">datevec</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">t</span><span style="color:rgb(92,92,92);">/</span><span style="color:rgb(188,143,143);">1000</span><span style="color:rgb(92,92,92);">/</span><span style="color:rgb(188,143,143);">24</span><span style="color:rgb(92,92,92);">/</span><span style="color:rgb(18
8,143,1
43);">3600</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(50,185,185);"><font color="#000000">out =</font> msprintf</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">%02d:%02d:%04.1f</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">h</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);"> mn</span><span style="color:rgb(0,0,0);"> ,</span><span style="color:rgb(0,0,0);">s</span><span style="color:rgb(74,85,219);">)</span></big></big></pre>
Hope This Helps<br>
<br>
Samuel<br>
<br>
</body>
</html>