How to resort a vector such that it shows a specified 1-st order autocorrelation

5 ビュー (過去 30 日間)
Sven
Sven 2013 年 6 月 13 日
Hi, I have a nX1 vector which I need to resort such that it has a predefined 1st order autocorrelation. All the values in the vector should remain the same, just the order should be different. I am struggeling to achieve this. Any idea how I can get this done? Thanks Sven

回答 (1 件)

David Sanchez
David Sanchez 2013 年 6 月 13 日
You can use the built-in function sort to sort the array in either ascending or descending order. To perform the specific operation you require, I believe you should write your own function.
  1 件のコメント
Sven
Sven 2013 年 6 月 13 日
Hi David, not sure if this does what I actually want. I have a vector and suppose that the vector has an autocorrelation of 0.2. I now want to resort the vector to have an autocorrelation of 0.3 (or any other value that I define). The sort function doesnt allow me to do that, does it? Sven

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by