Menu

Matlab Script Generator

David Otter Nikolai Herzog

Matlab Script Generator

For normal use cases the Matlab Script Generator should be used within openCDT.

Within openCDT you should be able to select any model element and with right click -> "Generate Matlab Code" you can create a script. When you execute this script within Matlab you get that object including the values you have created for it in openCDT.

A window asks you where to save and how to name the matlab file. Click on "open" for saving the generated matlab script.

For generating one script which creates several objects, you have to create an additional class in the ecore model with a containment relation. Now this class is able to contain other classes in it. This has to be done by drag and drop within openCDT. If all classes are now under this additional class you start generating matlab code by clicking on that class and executing the "Generate Matlab Code" command. Then all edited objects are listed in one matlab script file.

If you encounter the problem that this button is not shown, please make sure that you start openCDT with the Matlab plugin activated. Therefore select Run -> Run Configurations -> client.product -> Plug-ins and activate net.bhl.cdt.generator.matlab.


Related

Wiki: Matlab Generator
Wiki: OpenCDT Developer News

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.