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

5 visualizaciones (últimos 30 días)
CS
CS el 15 de Dic. de 2020
Comentada: Star Strider el 17 de Dic. de 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!

Respuesta aceptada

Star Strider
Star Strider el 16 de Dic. de 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 comentarios
CS
CS el 17 de Dic. de 2020
Thank you so much!
It worked perfectly!
Star Strider
Star Strider el 17 de Dic. de 2020
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by