[TxMt] Matlab bundle
donkalar at gmail.com
Mon Dec 17 23:37:37 UTC 2007
Matlab is now Java-based, but provides terminal access as well.
Personally I almost exclusively use the terminal and textmate, both
out of habit (the early Java versions were both slow and buggy, though
it appears the devs at Mathworks have fixed a lot of that with recent
releases) and because a lot of my work requires timing precision that
excludes a JVM.
I'm still fairly naive to the details of your approach, but matlab
provides an 'eval' function that executes a string passed as code.
Could one simply pipe the code to run from textmate into an eval call,
followed by a `touch /tmp/file_indicating_script_is_finished`? You'd
need to wrap it in a try-catch most likely to ensure that the touch
command occurs even if the executed string fails.
I don't think Mathworks provides demos, but Octave may be compatible
enough to be a drop in replacement for these purposes. Ideally I guess
the Matlab bundle should support Octave as well.
On 12/17/07, Hans-Jörg Bibiko <bibiko at eva.mpg.de> wrote:
> I'm just fine-tuning the R daemon which runs in a pseudo terminal.
> The basic idea works pretty well, and if Matlab – to be honest, my
> last contact with Matlab was about 15 years ago – runs in the
> Terminal then it should be possible (theoretically) to use the same
> However, my crucial point with R is the synchronisation, meaning
> after sending a task to R how does one know whether R did the job. My
> current approach is very naïve but it works for 98% of all cases; I
> simply look at R's CPU coverage, but this could not be the end,
> because if R by itself starts some shell commands etc...
> Thus one can try to adopt that idea using the pty library (in Ruby)
> and run Matlab.
> BTW is Matlab downloadable for free? Or a test version? Then I could
> run a dry-run.
More information about the textmate