フィルターのクリア

How to 'Mirror Image' my Vectors

7 ビュー (過去 30 日間)
Maskus Kit
Maskus Kit 2021 年 3 月 16 日
コメント済み: Bjorn Gustavsson 2021 年 3 月 17 日
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
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
Maskus Kit 2021 年 3 月 16 日
@Walter Roberson Those are correct, the x (longitudes) and y (latitudes).

サインインしてコメントする。

採用された回答

Bjorn Gustavsson
Bjorn Gustavsson 2021 年 3 月 16 日
If your yellow point-markers are supposed to lie on/in/over the stream (river?) then you might have to either rotate their coordinates around the centre of the scene, or perhaps mirror the coordinates on the diagonal. For the latter case I attach a function that mirror points relative to a line.
HTH
  7 件のコメント
Maskus Kit
Maskus Kit 2021 年 3 月 17 日
@Bjorn Gustavsson Works perfectly! Thanks :)
Bjorn Gustavsson
Bjorn Gustavsson 2021 年 3 月 17 日
My pleasure!
(Please share/upload the corrected points-overlayed-on-image figure - it would bring me(us?) joy...)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange3-D Scene Control についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by