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

12 vues (au cours des 30 derniers jours)
CS
CS le 15 Déc 2020
Commenté : Star Strider le 17 Déc 2020
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!

Réponse acceptée

Star Strider
Star Strider le 16 Déc 2020
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 commentaires
CS
CS le 17 Déc 2020
Thank you so much!
It worked perfectly!
Star Strider
Star Strider le 17 Déc 2020
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by