how to make trendline in matlab using polyfit command?
古いコメントを表示
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 件のコメント
Jan
2017 年 5 月 22 日
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
2017 年 5 月 22 日
採用された回答
その他の回答 (1 件)
Alex Backer
2020 年 6 月 1 日
0 投票
カテゴリ
ヘルプ センター および File Exchange で Point Cloud Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!