sorting a time series
6 ビュー (過去 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!