Time series with date
Show older comments
Hello I have two time series Xt and Yt ranging from 2005 to 2012 on daily basis (two rows one indicate the date and the second values). I have two questions : 1. How to import each series with date raw and values raw? 2. I would like to extract only values for which date is the same?
Bests
Answers (1)
if you're using 2013b or later, use readtable. Very simple,
T = readtable('filename.csv');
then if you have 2016b or later, please please use a timetable to store your data,
TT = table2timetable(T,'RowTimes',timeVarName)
links:
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!