フィルターのクリア

how can fit plot to given slope.

1 回表示 (過去 30 日間)
devendra
devendra 2014 年 6 月 19 日
コメント済み: devendra 2014 年 6 月 20 日
i have already find mann-kendal slope for my output time series data how can fit this slope on plot(my output time series).please help me .thank you in advance.
  4 件のコメント
Image Analyst
Image Analyst 2014 年 6 月 20 日
What is a "mann-kendal slope" and how does it differ from the traditional slope like you'd get from polyfit()? My solution below fits the data. Why was my solution no good?
devendra
devendra 2014 年 6 月 20 日
sir i have already sen's slope(0.4706) i want to fit this slope on my data.i am not saying your solution is wrong but not appropriate for my question.thank you

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2014 年 6 月 19 日
Just plot your raw, noisy data. Then create a series of data using the formula for a line and use plot() to display it. Be sure to use hold on in between the calls to plot().
By the way, I've attached a demo for polyfit where I do the same thing. I just get the slope from polyfit instead of whatever gave you the "mann-kendal" slope.

カテゴリ

Help Center および File ExchangeFit Postprocessing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by