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!