sorting a time series
5 次查看(过去 30 天)
显示 更早的评论
Hello,
II have a time series Yt and I sorted them in ascending order and I got Yi, then I used them in a function and I got Zi as Zi=F(Yi), How can I rearrange Zi to Zt (the same order of Yt)?
0 个评论
采纳的回答
Conrad
2013-2-11
You need to use the optional output from the sort function that contains the sort order.
[Y, idx] = sort(time_series);
Zt = Zi(idx);
0 个评论
更多回答(1 个)
Youssef Khmou
2013-2-11
hi, you apply directly the function Zt=F(Yt) as :
(Yt,Yi) =>: F(Yt,Yi)=(Zt,Zi)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!