On Oct 22, 2009, at 2:15 PM, Nasser Abbasi wrote:
Hi, how do you run matlab command from sage like this above? I have sage 4.1.2 and matlab 2008b installed on my windows XP PC, but when I run the above, it tells me it can't start matlab: a = random_matrix(RDF,2000) timeit('a*a') 5 loops, best of 3: 2.17 s per loop b = matlab('rand(2000)') timeit('b*b') .... TypeError: Unable to start matlab I assume I need to do some 'configuration' documented somewhere which I did not even try to look for. may be because iam student and using student version of matlab?
The problem likely is that Sage is running inside the VM and is running on Linux while Matlab is on XP. Linux can't run a Windows command like that. You'd have to install Matlab inside the Sage VM. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey
smime.p7s
Description: S/MIME cryptographic signature