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

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)

You can convert your triangular data into structured using griddata. After converting into a grid you can use surfm.
Read about griddata.

1 Comment

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.

Categories

Products

Release

R2020a

Asked:

on 10 Feb 2022

Commented:

on 10 Feb 2022

Community Treasure Hunt

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

Start Hunting!