Timeseries data in Matlab
2 次查看(过去 30 天)
显示 更早的评论
Hello.
I have data in a textfile.
There are five variables in columns.
- Date in Years - 2015 to 2018
- Time in Months (0 - 12)
- Time in Days - (0 - 30 or 31 depending on length of the month)
- Time in Hours (0 - 23)
- Wind speed recorded at every hour (0 - 23) for every day.
I want to make a timeseries plot to show the temp (on y axis) and time on x-axis for the period 2015 to 2018.
How can I do this? What functions do I need to do this?
Thank you.
3 个评论
John D'Errico
2019-11-12
Start by learning MATLAB. That is, read the getting started tutorials, since these are pretty basic questions.
That is, you need to read in your data. textread might be a good place to start.
Then, convert it to a single time variable. datetime might be a good idea here.
Finally, plot. A good place to start there is the function plot.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Time Series 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!