Sublime Forum

MatLab with Sublime Text 2 Plot Problems

#1

Hi,

Firstly I’m a bit of a Sublime Text newbie so bare with me.
I have managed to add build code to sublime text 2, have added this code to build Matlab Scripts:

[code]{
“selector”: “source.matlab”,
“cmd”: “/Applications/MATLAB_R2013a.app/bin/matlab”, “-nosplash”, “<$file_name”],

“variants”:

{ "cmd": "/Applications/MATLAB_R2013a.app/bin/matlab", "-nosplash", "-r", "publish('$file_path/$file_name')"],
  "name": "Publish Matlab"
},

{
  "cmd": "open", "$file_path/html/$file_base_name.html"],
  "name": "Open published Matlab"
}

]
}[/code]

My problem is that every time my matlab script runs to completion and then the plot shows for half a second and then matlab quits and the plot vanishes.

So my proposed solution would be to have a build code that builds off a pre opened matlab application and then not quit that application after each build therefore the plot should stay?

Does anybody know how to do this?

FYI I am running Matlab R2013a for Mac and using OS 10.9.2

Thanks in advance.

0 Likes