×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Having issue with consolidating date and time vectors in large array to datetime in one vector

## Having issue with consolidating date and time vectors in large array to datetime in one vector

(OP)
I could only find a limited amount of video instruction on this, new to Matlab.
I have some data files with date and time in separate column vectors, but want to plot the time stamped data, so that date and time are together (as x axis on plot).

### RE: Having issue with consolidating date and time vectors in large array to datetime in one vector

Date is typically (in Excel) a whole number where 1 represents 1/1/1900, and time is the floating point fraction of a day

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

### RE: Having issue with consolidating date and time vectors in large array to datetime in one vector

(OP)
What you are telling me is that to concatenate the two columns requires (1) that the date reference needs to be consistent to the same date between logger file (consistent with Microsoft)and the MatLab software definition of date relative to a starting date (different than Microsoft date). Then I must convert the time into a real fraction and add this to the integer date, as one final output vector.
That sounds about right, as I did run into some odd looking date times after trying straightforward addition without conversion to Matlab date.

### RE: Having issue with consolidating date and time vectors in large array to datetime in one vector

That's pretty much it. Matlab does have functions for manipulating dates and times: https://www.mathworks.com/help/finance/handling-an...

However, if it were me; I'd upload into Excel and do the concatenation there.

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

### RE: Having issue with consolidating date and time vectors in large array to datetime in one vector

(OP)
I was using Excel previously when the files only had about 35,000 rows. Since we will be running for about 1 week to 2 weeks at a time, the LOGGERXX.csv might have as many as 1,209,600 rows as some of the data is updated once per second, some has a variable update time about 5 seconds to 60 seconds, depending on a dial setting, and some updates once per minute. Plotting part of all these separate blocks of data into one consolidated graphic might get interesting. We have not had the ability to get everything running on one Arduino Mega. Trying to work more than about 35,000 rows in Excel gets really tedious, and I think it cannot handle past 1,000,000 rows anyway.

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

#### Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a partâ€™s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!