MATLAB Answers

0

concatenating 3x1 array

Asked by Muhammad Haziq on 2 Mar 2019
Latest activity Answered by Stephan
on 2 Mar 2019
I have value like this
18.000000
11.000000
5.635000
I want it to concatenate like this
18:11:5.635
how can I do this can any body guide me.

  2 Comments

madhan ravi
on 2 Mar 2019
You forgot to mention the necessary details (datetime?)
18.00 is the hour, 11 is the minute, 5.635 is the seconds

Sign in to comment.

Tags

Products


Release

R2018a

1 Answer

Stephan
Answer by Stephan
on 2 Mar 2019
 Accepted Answer

Hi,
try:
result = datetime([0 0 0 18 11 5.635], 'Format', 'HH:mm:ss.SSS')
Best regards
Stephan

  0 Comments

Sign in to comment.