Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Object Oriented Programming with the Mapping Toolbox

Asked by Usman

Usman (view profile)

on 26 May 2013

I'm using MATLAB (Mapping Toolbox) to create a large number of lines between different countries. Since there are so many lines, I'm trying to do this using object-oriented programming.

The problem is that I've created a lot of objects (lines) from the class, 'Transline', but when I try to export the whole set as a shape-file using the 'shapewrite' command, MATLAB tells me that it's invalid because the 'shapewrite' command expects an input argument of type 'struct' rather than 'Transline' (which is the class of these objects). Is there any way I can use object-oriented programming to export the set of lines as a shapefile?

Thank you.



Usman (view profile)


No products are associated with this question.

0 Answers

Contact us