How to flip or mirror some vector parts
Mostrar comentarios más antiguos
Hi,
I have a data that has flipped on me. I need to correct for this but I am not sure how to do this. The data is in vector form.

I need to somehow invert the data to become a rectangle form, see red line in photo above. I looked at flipud, and other functions like that but I can't get the it turned correctly.
How can I do this? Attaching the vector.
Many thanks!
4 comentarios
pfb
el 12 de Abr. de 2015
But how can the blue line become the red one just by flipping it or a portion of it? Even after flipping, the curves will be different.
And anyway, isn't this the very definition of "data doctoring"?
I think you should perhaps focus on the reason why your data flipped on you, whatever that means.
Lizan
el 12 de Abr. de 2015
But what exactly is what you want to "flip"?
In flipud (or fliplr), up and down (or left and right) refer to the vector, irrespective of the data it contains. That is, if v = [1 2 3 4] then fliplr(v)=[4 3 2 1]. Also flipud(v) would produce v itself, because v is a row, and flipud works along columns.
I do not think that flipping alone would do the trick.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Mathematics en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!