constructing a time variable in matlab
8 views (last 30 days)
Show older comments
Dear all,
I have a matrix
data= [9 30 0
9 30 0
9 30 0
9 30 0
9 30 0
9 30 1
9 30 1
9 30 1
9 30 1
9 30 1];
The first colum is the hour, the second column is the minute and the third column is second
I want to merge these 3 columns so as to construct a time variable as follows
datanew= [9.300
9.300
9.300
9.300
9.300
9.301
9.301
9.301]
;
How Can I do that in matlab? Is there any code?
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!