Rotate a line profile to remove the tilt (make it horizontal)
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a profile of a line like below
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/462410/image.jpeg)
I want to rotate the file to horizontal like below
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/462415/image.jpeg)
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/462420/image.jpeg)
Any idea would be appreciated!
0 commentaires
Réponse acceptée
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
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Performance 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!