How to 'Mirror Image' my Vectors
Show older comments
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 Comments
Walter Roberson
on 16 Mar 2021
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
on 16 Mar 2021
... 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
on 16 Mar 2021
Walter Roberson
on 16 Mar 2021
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
on 16 Mar 2021
Accepted Answer
More Answers (0)
Categories
Find more on Neighborhood and Block Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!