Re: Looking for a program that transforms Mathematica to Matlab expressions!!!
- To: mathgroup at smc.vnet.net
- Subject: [mg35169] Re: Looking for a program that transforms Mathematica to Matlab expressions!!!
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 28 Jun 2002 02:30:55 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <email@example.com>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, there is no reason to use MathLab if you have Mathematica. If you need symbolic computation in such a lausy system like MatLab you can use it's symbolic tool box. If you need fast and excelent numerics you should continue with Mathematica because it is much better. Regards Jens Konstantinos Economou wrote: > > Hello everybody! > > I am currently working on Mathematica for my thesis in Mechanical Eng. Dept. > of National Technical University of Athens (NTUA). I want to transform the > symbolic expression of a particular 6x37 matrix to Matlab in order to perform > some tests there for the rank. I have located on the web a mathematica > package named "ToMatlab.m". The latter is supposed to transform a Mathematica > expression to Matlab form and is created by Harri Ojanen > (http://www.iki.fi/~harri.ojanen). Although the package seems to work alright > with simple matrices, it goes crazy with symbolic matrices and large > numerical matrices. What I am saying is that when I use the package > ToMatlab.m (and more precisly the function ToMatlab) on my 6x37 symbolic > matrix, the program finds a different number of columns for every row > (probably the full symbolic expression of my matrix is far too complicated > for it). So the translated form of the matrix, when input to a Matlab M-file > returns a message that says that this is not a matrix (since we have a group > of rows with different number of columns). Now I am not sure whether the > package works even with simpler inputs-Mathematica expressions. > > My question is this: has anybody ever used this package or probably knows any > other similar one doing this job (converting Mathematica to Matlab)? Is there > any other way to get from Mathematica to Matlab (for example via C) and are > there any packages-programs-toolboxes created for this purpose? At the moment > I am pretty stuck and can't go on with my work, so I would appreciate any > suggestions. > > I thank you in advance. Because from time to time I can't read all the posts > in the newsgroup (due to server problems) please reply to my private e-mail > address as well: > mc96080 at mail.ntua.gr > > Konstantinos Economou.