Is it possible to run a solidworks macro in batch mode from a matlab script?

Currently I'm been using the following code

system ('"C:/Program Files/SOLIDWORKS Corp/SOLIDWORKS/SLDWORKS.exe" /m "[macro location]"')

However, this doesn't run in batch mode and opens up the GUI. The macro does run.

Any ideas?

SolidworksApi macros