How to 'Mirror Image' my Vectors
이전 댓글 표시
Hello friends,
Been struggling with what might be a simple issue but can't seem to figure out. I have two vectors that are a 'mirror image' of themselves when plotted. Can anyone help me reorient them properly? I have tried flipud and fliplr but no success!
Attached the mirror image and the x and y vectors in spreadsheet. Any ideas will be deeply appreciated!
Thanks.

댓글 수: 5
Walter Roberson
2021년 3월 16일
The minimum y value is 3.650514169 but the minimum x value is 6.613740176 so I do not understand why you say they are mirror image.
The values look like they might define grids of coordinates; it looks roughly like there as many different copies of each x value in a row, as there are unique y values, and it looks like the y values might repeat periodically. So it looks like the coordinates might be outputs of meshgrid() that are reshaped to vectors.
Walter Roberson
2021년 3월 16일
... When you talk about "mirror image" are you saying that the coordinates form the shape of a curved lens? The shape pictured would be more likely used to focus light than to be used as a mirror, it looks to me.
It isn't clear to me what the question is.
Maskus Kit
2021년 3월 16일
Walter Roberson
2021년 3월 16일
To check the obvious: if you are using GIS, then are you making sure you use longitude -> x and latitude -> y, and that latitude corresponds to rows in MATLAB arrays and that longitude corresponds to columns in MATLAB arrays?
Maskus Kit
2021년 3월 16일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Neighborhood and Block Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!