I am using tutorial frequency domain linear regression but I can't understand some parts.
    2 views (last 30 days)
  
       Show older comments
    
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 Comment
  Daniel M
      
 on 30 Oct 2019
				Hello! I suggest reading the two following pages, and following the examples.
Answers (0)
See Also
Categories
				Find more on Linear Regression in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
