Rotate a line profile to remove the tilt (make it horizontal)

5 ビュー (過去 30 日間)
CS
CS 2020 年 12 月 15 日
コメント済み: Star Strider 2020 年 12 月 17 日
I have a profile of a line like below
I want to rotate the file to horizontal like below
Any idea how I can do that?
Actually, the above situation is just a simple example; I want to rotate the below line to horizontal:
Any idea would be appreciated!

採用された回答

Star Strider
Star Strider 2020 年 12 月 16 日
Use the detrend function. Specifically see the documentation section on Continuous Linear Trend , although other examples may be relevant, depending on the result you want.
  2 件のコメント
CS
CS 2020 年 12 月 17 日
Thank you so much!
It worked perfectly!
Star Strider
Star Strider 2020 年 12 月 17 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by