What should i add more to create decent autocorr func.
조회 수: 1 (최근 30일)
이전 댓글 표시
t= rand(100) ; %% ‘I have created 100 point random sampled f(t)’
mean(t); %% ‘calculated mean’
var(t); %% ‘calculated variance’
Now how can i create autocorrelation function for f(t)
댓글 수: 0
답변 (1개)
Rishabh Mishra
2020년 12월 24일
Hi,
To create autocorrelation function using given time series ‘t’, ‘t’ should 1 x n array (or vector). Modify the existing code as given below to create autocorrelation function.
t= rand(1,100) ; %% 1 x 100 array with 100 random values
m = mean(t); %% ‘calculated mean’
v = var(t); %% ‘calculated variance’
autocorr(t);
In the code above ‘t’ is vector instead of a matrix.
Hope this helps.
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!