![](https://secure.gravatar.com/avatar/6902cea148dddf45b0d89afc9dcf5e4a.jpg?s=120&d=mm&r=g)
This is probably in an FAQ somewhere but ..... Is there a tool out there for translating Matlab to Numeric? I found a 1999 posting by Travis asking the same thing! It doesn't seem like it would be all THAT difficult to write. Mathew
![](https://secure.gravatar.com/avatar/6a1dc50b8d79fe3b9a5e9f5d8a118901.jpg?s=120&d=mm&r=g)
On 6/23/06, Mathew Yeates <myeates@jpl.nasa.gov> wrote:
This is probably in an FAQ somewhere but .....
Is there a tool out there for translating Matlab to Numeric? I found a 1999 posting by Travis asking the same thing! It doesn't seem like it would be all THAT difficult to write.
I'm porting by hand. It does not seem easy to me. And even if it were easy, both Matlab and NumPy are moving targets. So it would difficult to maintain.
![](https://secure.gravatar.com/avatar/6a1dc50b8d79fe3b9a5e9f5d8a118901.jpg?s=120&d=mm&r=g)
On 6/23/06, Mathew Yeates <myeates@jpl.nasa.gov> wrote:
I'm porting by hand. It does not seem easy to me. And even if it were
Ah. Do I detect a dare? Could start first by using Octaves matlab parser.
(Let me help you recruit people to do the work) "There is no way in the world that this will work!"
![](https://secure.gravatar.com/avatar/435a51ff78acaeb45e91d709a0954c3a.jpg?s=120&d=mm&r=g)
If people could post lines of Matlab code and proposed numpy could, we could try some regexp's that could do some of this. Ryan On 6/23/06, Keith Goodman <kwgoodman@gmail.com> wrote:
On 6/23/06, Mathew Yeates <myeates@jpl.nasa.gov> wrote:
I'm porting by hand. It does not seem easy to me. And even if it were
Ah. Do I detect a dare? Could start first by using Octaves matlab parser.
(Let me help you recruit people to do the work)
"There is no way in the world that this will work!"
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
![](https://secure.gravatar.com/avatar/3c56f61f3ca8298e0323e74cfbe6ae91.jpg?s=120&d=mm&r=g)
One possible starting point for this would be Chris Stawarz's i2py translator which attempts to do this for IDL <http://software.pseudogreen.org/i2py/>. It might be possible to build on this by getting it working for current numpy. The production rules for MATLAB might be gleaned from Octave. Gary R. Mathew Yeates wrote:
I'm porting by hand. It does not seem easy to me. And even if it were Ah. Do I detect a dare? Could start first by using Octaves matlab parser.
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
Keith Goodman wrote:
I'm porting by hand. It does not seem easy to me. And even if it were
Mathew Yeates wrote:
Ah. Do I detect a dare? Could start first by using Octaves matlab parser.
Let's just say that anyone coming to this list saying something like, "It doesn't seem like it would be all THAT difficult to write," gets an automatic, "Show me," from me. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
![](https://secure.gravatar.com/avatar/299f4f53acea8eeaba30ee2852a9c0fe.jpg?s=120&d=mm&r=g)
Let's just let those who want to try to do that and give our support? I would be happy if I could some parts of my old matlab programs translated to Scipy. On 6/24/06, Robert Kern <robert.kern@gmail.com> wrote:
Keith Goodman wrote:
I'm porting by hand. It does not seem easy to me. And even if it were
Ah. Do I detect a dare? Could start first by using Octaves matlab
Mathew Yeates wrote: parser.
Let's just say that anyone coming to this list saying something like, "It doesn't seem like it would be all THAT difficult to write," gets an automatic, "Show me," from me.
-- Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
-- --------------------------------- Vinicius Lobosco, PhD www.paperplat.com +46 8 612 7803 +46 73 925 8476 Björnnäsvägen 21 SE-113 47 Stockholm, Sweden
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
Vinicius Lobosco wrote:
Let's just let those who want to try to do that and give our support? I would be happy if I could some parts of my old matlab programs translated to Scipy.
I do believe that, "Show me," is an *encouragement*. I am explicitly encouraging Mathew to work towards that end. Sheesh. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
![](https://secure.gravatar.com/avatar/c74f79c032b3f835eb4e967082f50eab.jpg?s=120&d=mm&r=g)
A couple of months ago I started something similar but unfortunately it has since stagnated. Its located at pym.python-hosting.com. With the exception of a commit a few weeks ago I haven't touched it for 4 months. That being said I havn't completly abandoned it and the basic foundation is there, all that remains is most of the language rules. I left it halfway through implementing language precedence according to http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/f0-38155.h.... Mark. On 6/24/06, Robert Kern <robert.kern@gmail.com> wrote:
Vinicius Lobosco wrote:
Let's just let those who want to try to do that and give our support? I would be happy if I could some parts of my old matlab programs translated to Scipy.
I do believe that, "Show me," is an *encouragement*. I am explicitly encouraging Mathew to work towards that end. Sheesh.
-- Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
![](https://secure.gravatar.com/avatar/6902cea148dddf45b0d89afc9dcf5e4a.jpg?s=120&d=mm&r=g)
I've been looking at a project called ANTLR (www.antlr.org) to do the translation. Unfortunately, although I may have a Matlab grammar, it would still be a lot of work to use ANTLR. I'll look at some of the links that have posted. Mathew Robert Kern wrote:
Vinicius Lobosco wrote:
Let's just let those who want to try to do that and give our support? I would be happy if I could some parts of my old matlab programs translated to Scipy.
I do believe that, "Show me," is an *encouragement*. I am explicitly encouraging Mathew to work towards that end. Sheesh.
![](https://secure.gravatar.com/avatar/c64841ad5de0190b19b32bbad93d9249.jpg?s=120&d=mm&r=g)
ANTLR was also used for GDL http://gnudatalanguage.sourceforge.net/ with amazing results. Erin On 6/28/06, Mathew Yeates <myeates@jpl.nasa.gov> wrote:
I've been looking at a project called ANTLR (www.antlr.org) to do the translation. Unfortunately, although I may have a Matlab grammar, it would still be a lot of work to use ANTLR. I'll look at some of the links that have posted.
Mathew
Robert Kern wrote:
Vinicius Lobosco wrote:
Let's just let those who want to try to do that and give our support? I would be happy if I could some parts of my old matlab programs translated to Scipy.
I do believe that, "Show me," is an *encouragement*. I am explicitly encouraging Mathew to work towards that end. Sheesh.
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
participants (8)
-
Erin Sheldon
-
Gary Ruben
-
Keith Goodman
-
Mark Treiber
-
Mathew Yeates
-
Robert Kern
-
Ryan Krauss
-
Vinicius Lobosco