How can I have a dd-mm-yyyy hh:mm:ss format on my axis x in a plot?
Show older comments
I would plot a graph rain versus time. when i read my file by xlsread commands matlab does not read my date time. I have to import my excel file by import data icon and then define two vectors rain and time, then i define Y=RAINY x=TIME plot =(x,y) finally, matlab can draw a plot for me. the point is that it makes own format as date time for me on plot, april 2016 or may 2016. 1- i would like to have my own format or similar like DD,MM,YYYY hh:mm:ss because i have data for each minute and excel can show like that.
2- Why matlab can not read date time when i perform command xlsread series? it just shows second column as rain data. only [num,txt,raw] = xlsread(___) can read the date time in text format but i can not put it on my graph. Please, if you have a suggestion or command series let me know.
Accepted Answer
More Answers (0)
Categories
Find more on Data Import from MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!