How to resort a vector such that it shows a specified 1-st order autocorrelation
조회 수: 4 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
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.
참고 항목
카테고리
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!