How can I export the contourm C variable to a struc?

2 vues (au cours des 30 derniers jours)
KenK
KenK le 18 Juil 2016
I have created a matlab figure with multiple contours with contourm. I would like to export the contours to a shape file. How can I export the C variable to a struc? What is the format of the C matrix? It contains more than just lat and long data.
  2 commentaires
Azzi Abdelmalek
Azzi Abdelmalek le 18 Juil 2016
What is a struc?
KenK
KenK le 18 Juil 2016
struct = structure

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 18 Juil 2016
Modifié(e) : Walter Roberson le 19 Juil 2016
  1 commentaire
KenK
KenK le 19 Juil 2016
This code gives me a good starting point for getting my data out of the contour matrix format.

Connectez-vous pour commenter.

Plus de réponses (1)

Chad Greene
Chad Greene le 18 Juil 2016
Similar to Walter's suggestion, C2xyz puts x, y, and z values into their own cells. You could convert the cells to struct by cell2struct.

Community Treasure Hunt

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

Start Hunting!

Translated by