Plotting selected data from time series
31 次查看(过去 30 天)
显示 更早的评论
Say ts is a timeseries object with three data colums. Storing min temperature, max temperature and humidity. I am interested in just plotting min and max temperature. How can I get it done?
I need something like plot(ts(:, 1:2)) ( I know this won't work)
0 个评论
采纳的回答
alice
2017-7-20
If you want to plot the time versus the min temperature and the time versus the max temperature and if your min temperature is on the first column of the data of your timeseries and the the max temperature in the second, then access those and plot them:
plot(ts.time,ts.data(:,1), ts.time,ts.data(:,2));
更多回答(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!