MATLAB: How to export the contourm C variable to a struc

contourmshapefilestruct

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.