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

2 ビュー (過去 30 日間)
KenK
KenK 2016 年 7 月 18 日
編集済み: Walter Roberson 2016 年 7 月 19 日
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 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 7 月 18 日
What is a struc?
KenK
KenK 2016 年 7 月 18 日
struct = structure

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

採用された回答

Walter Roberson
Walter Roberson 2016 年 7 月 18 日
編集済み: Walter Roberson 2016 年 7 月 19 日
  1 件のコメント
KenK
KenK 2016 年 7 月 19 日
This code gives me a good starting point for getting my data out of the contour matrix format.

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

その他の回答 (1 件)

Chad Greene
Chad Greene 2016 年 7 月 18 日
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.

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by