How to flip or mirror some vector parts
Show older comments
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 Comments
pfb
on 12 Apr 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
on 12 Apr 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.
Accepted Answer
More Answers (0)
Categories
Find more on Mathematics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!