ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 03 May 2016 10:24:05 -0500Error when trying to access MATLAB from Sagehttp://ask.sagemath.org/question/33280/error-when-trying-to-access-matlab-from-sage/ I'm writing a program in Sage but need to call a function that I've written in MATLAB, sending some input values and receiving back a numerical result. Just to make sure the connection was working, I executed **matlab('4+10')** in Sage, expecting to get back **14**, but instead I got an error: "TypeError: unable to start matlab". Any advice on how I can fix this?
I'm running Sage locally, not online, if that matters. Also, I've heard at least one person say "Why use MATLAB at all? Just use Numpy, etc, in Sage." I'm using the MATLAB extension CVX, which has a much easier interface than Sage's Cvxopt. That's why I prefer to doSun, 01 May 2016 14:54:05 -0500http://ask.sagemath.org/question/33280/error-when-trying-to-access-matlab-from-sage/Comment by kcrisman for <p>I'm writing a program in Sage but need to call a function that I've written in MATLAB, sending some input values and receiving back a numerical result. Just to make sure the connection was working, I executed <strong>matlab('4+10')</strong> in Sage, expecting to get back <strong>14</strong>, but instead I got an error: "TypeError: unable to start matlab". Any advice on how I can fix this?</p>
<p>I'm running Sage locally, not online, if that matters. Also, I've heard at least one person say "Why use MATLAB at all? Just use Numpy, etc, in Sage." I'm using the MATLAB extension CVX, which has a much easier interface than Sage's Cvxopt. That's why I prefer to do</p>
http://ask.sagemath.org/question/33280/error-when-trying-to-access-matlab-from-sage/?comment=33308#post-id-33308I wonder what happens if you try to use matlab from the command line directly? Or maybe there is some permission/validation of license thing that has to happen first?Tue, 03 May 2016 10:24:05 -0500http://ask.sagemath.org/question/33280/error-when-trying-to-access-matlab-from-sage/?comment=33308#post-id-33308