What should i add more to create decent autocorr func.

6 ビュー (過去 30 日間)
enhu
enhu 2020 年 12 月 20 日
コメント済み: enhu 2020 年 12 月 28 日
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)

回答 (1 件)

Rishabh Mishra
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.
  1 件のコメント
enhu
enhu 2020 年 12 月 28 日
Thank you. Now i see

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

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by