### invoking GMAT from matlab ...

Posted:

**Sat Jul 07, 2012 2:28 am**Howdy folks!

When I load the libMatlabInterface plugin, two icons appear on the resources tab in GMAT. One labeled "Matlab" and another "Matlab Server". To run Ex_CallMatlabFunction.script, I right-click on "Matlab Server" and select Start first, then I run the GMAT script. However, I am uncertain as to what the role of the "Matlab" icon is on the resources tab. The only options it gives me, when I right-click on it, are "Open" or "Close". I'm just not sure what exactly it is supposed to "Open" or "Close". Nothing ever seems to happen either way, regardless of whether or not the Matlab Server is running.

On a possibly related note, there is a script file under GmatDevelopment\doc\SystemDocs\ArchitecturalSpecification\script called diffcorrHohmann.m, and others under the matlab folder of the parent directory, which seems to suggest you can basically execute a GMAT script or invoke some GMAT functionality from MATLAB. However, the chapter that would allude to this on the architectural specification, chapter 19, appears to be empty. Does this functionality actually work? If so, can anyone share some insights as to what the steps involved are for getting it to work? Currently, if I start GMAT and then Start MATLAB (R2012a, 32-bit), I get a Matlab system error message as matlab crashes. I've attached a copy of the matlab dump file and an image of the error to this post. Is the "Matlab" icon on the resources tab somehow related to the capability to run GMAT from within MATLAB?

Any insight, or nudge in the right direction, you can provide would be greatly appreciated.

When I load the libMatlabInterface plugin, two icons appear on the resources tab in GMAT. One labeled "Matlab" and another "Matlab Server". To run Ex_CallMatlabFunction.script, I right-click on "Matlab Server" and select Start first, then I run the GMAT script. However, I am uncertain as to what the role of the "Matlab" icon is on the resources tab. The only options it gives me, when I right-click on it, are "Open" or "Close". I'm just not sure what exactly it is supposed to "Open" or "Close". Nothing ever seems to happen either way, regardless of whether or not the Matlab Server is running.

On a possibly related note, there is a script file under GmatDevelopment\doc\SystemDocs\ArchitecturalSpecification\script called diffcorrHohmann.m, and others under the matlab folder of the parent directory, which seems to suggest you can basically execute a GMAT script or invoke some GMAT functionality from MATLAB. However, the chapter that would allude to this on the architectural specification, chapter 19, appears to be empty. Does this functionality actually work? If so, can anyone share some insights as to what the steps involved are for getting it to work? Currently, if I start GMAT and then Start MATLAB (R2012a, 32-bit), I get a Matlab system error message as matlab crashes. I've attached a copy of the matlab dump file and an image of the error to this post. Is the "Matlab" icon on the resources tab somehow related to the capability to run GMAT from within MATLAB?

Any insight, or nudge in the right direction, you can provide would be greatly appreciated.