How to resort a vector such that it shows a specified 1-st order autocorrelation
Mostra commenti meno recenti
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
Risposte (1)
David Sanchez
il 13 Giu 2013
0 voti
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 Commento
Sven
il 13 Giu 2013
Categorie
Scopri di più su Shifting and Sorting Matrices in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!