Sublime Forum

Matlab plot

#1

Please help me. when I compile my matlab code in sublime text 3, plots apear and then disappear suddenly.

Thank you

0 Likes

#2

What does your sublime-build file look like? I’m not familiar with MatLab, but from what you describe it sounds like it might have something to do with the plot only appearing while whatever tool you’re running is running. So once the build is completed and MatLab (or whatever it is) is finished and terminates, your plot goes away.

If that is the case you would need to modify the build to pause before exiting somehow. It might be as simple as an extra command line parameter to the task or it might require some extra action in the build (e.g. if you’re using windows, possibly by adding && pause to the end of the build command so that windows pauses before everything is finished executing.

0 Likes