How do I plot one timeseries vs another from the command line?
显示 更早的评论
I have two timeseries. I want to plot them vs each other in an XY plot. Is this possible to do this like in the tstool "XY Plots" option? I want to do this from the command line and not from tstool.
采纳的回答
更多回答(1 个)
Tamas Majoros
2018-8-15
0 个投票
Nice thing about timeseries is the built-in utility methods:
[xTs,yTs] = synchronize(xTs,yTs,'Union'); plot(xTs.Data,yTs.Data)
类别
在 帮助中心 和 File Exchange 中查找有关 Time Series 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!