Clear Filters
Clear Filters

Can I plot geographic data defined on a triangular mesh on a map axes object?

4 views (last 30 days)
Does MATLAB have a means of plotting data defined on a triangular mesh on a map axes object? The vertices of the triangulation are given in latitude and longitude coordinates. I’m aware of geoshow, patchm and surfm, but these don’t seem to do the trick. Ideally, I would be looking for something called trisurfm, but it doesn’t exist. So I’m guessing the answer is no.

Answers (1)

KSSV
KSSV on 10 Feb 2022
You can convert your triangular data into structured using griddata. After converting into a grid you can use surfm.
Read about griddata.
  1 Comment
David Russell
David Russell on 10 Feb 2022
Thanks. That may be the best solution, but it's not ideal. I'm dealing with data on a lake, and griddata basically destroys the coastlines and fills in the islands.

Sign in to comment.

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!