Converting serial date to regular dates
Show older comments
Hi guys
I am very new to MATLAB so please bare with me.
I am combining 5 x .mat files for climate reanalysis plots.
Most of the code works but it's the converting dates line not working.
The code is:
plot(datenum(data_all(:,1)),data_all(:,2),'-r');
Now this produces the correct plot but with serial numbers. I've tried many variations to try to fix this but none are working.
Thank you in advance!
Abi
2 Comments
David Hill
on 22 Mar 2021
Show sample format of your data_all(:,1) first column
Abigail Waring
on 22 Mar 2021
Answers (1)
Jan
on 22 Mar 2021
plot(data_all(:,1), data_all(:,2), '-r');
datetick('x')
1 Comment
Abigail Waring
on 22 Mar 2021
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!