How do you import time and date data into matlab?

6 views (last 30 days)
If you have the data in excel in this format:6/13/2013 14:45, how do you import it into Matlab as a string and keep the same format on matlab? Thank you for your help.

Accepted Answer

Shashank Prasanna
Shashank Prasanna on 8 Jul 2013
Use importdata or xlsread to pull data in. You can also use the import button on the tool strip if you are using a version of MATLAB > R2012b
You can represent your dates in date number format:

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!