Change the time format ?
    3 ビュー (過去 30 日間)
  
       古いコメントを表示
    
Hi! 
I have the following time format: 
80057 
81409
91502
102514
and i want to take the format:
8:00:57
8:14:09
9:15:02
10:25:14
Any ideas?
0 件のコメント
採用された回答
  Bob Thompson
      
 2019 年 4 月 9 日
        I'm assuming that you have an array of doubles. This works fine for the inputs, but will not be possible with the outputs. I am outputting the results as string, therefore.
A = [80057 
81409
91502
102514];
B = num2str(A,'%06d');
C = repmat(':',size(B,1),1);
B = [B(:,1:2),B_1,B(:,3:4),B_1,B(:,5:6)];
3 件のコメント
その他の回答 (0 件)
参考
カテゴリ
				Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


