How to flip or mirror some vector parts
이전 댓글 표시
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
pfb
2015년 4월 12일
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
2015년 4월 12일
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!