how to make trendline in matlab using polyfit command?
Show older comments
I have 1:37 values in x-axis.X-axis represents years ranging from 1980 to 2016 and 1:37 values in y axis represents value of ozone data. So for this the command i am running is a=xlsread('H:\season\Ranking.xlsx','Sheet4'); x=[1:37] for i=1:37; slope(i)=polyfit(x,a(:,i)',2); end; Help me in correcting it.
2 Comments
Jan
on 22 May 2017
Before we can correct this, you have to explain, what is wrong. Do you get an error message or do the results differ from yopur expectations? In the latter case, please explain both.
Pritha Pande
on 22 May 2017
Accepted Answer
More Answers (1)
Alex Backer
on 1 Jun 2020
0 votes
Categories
Find more on Point Cloud Processing 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!