I am using tutorial frequency domain linear regression but I can't understand some parts.
2 ビュー (過去 30 日間)
古いコメントを表示
tsdft = fft(ts-mean(ts));
freq = 0:1/72:1/2;
plot(freq.*12,abs(tsdft(1:length(ts)/2+1)),'o-', ...
'MarkerFaceColor','auto')
xlabel('Cycles/Year')
ylabel('Magnitude')
ax = gca;
ax.XTick = [1/6 1 2 3 4 5 6];
how you calculate freq?
why is multiply by 12?
In graph 1/6 used instead o??
kindly help me in regard
Waiting for your response
1 件のコメント
Daniel M
2019 年 10 月 30 日
Hello! I suggest reading the two following pages, and following the examples.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Linear Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!