how to make trendline in matlab using polyfit command?
Afficher commentaires plus anciens
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 commentaires
Jan
le 22 Mai 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
le 22 Mai 2017
Réponse acceptée
Plus de réponses (1)
Catégories
En savoir plus sur Point Cloud Processing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!