how to create date variable or column
Show older comments
Dear All, I have numeric matrix of 3 columns and 100 rows, the 1st column is A and represents day number from 1 to 30, the 2nd column is B and represents month number from 1 to 12, the 3rd one is the year, how can I please create 4th column for the date in the format mm/dd/year? by combining the 3 columns. And then add this column with this format to the matrix as a 4th column. thank you
4 Comments
James Tursa
on 10 May 2019
You can't mix formatted dates in with a numeric matrix. Do you actually have a table? Can you show us the first few lines of what you currently have?
MAHMOUD ALZIOUD
on 10 May 2019
James Tursa
on 10 May 2019
Readers are going to be reluctant to download an Excel spreadsheet. Can you provide what you have on the MATLAB side? Do you need help in loading the spreadsheet into MATLAB?
MAHMOUD ALZIOUD
on 10 May 2019
Accepted Answer
More Answers (0)
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!