Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Mathematica to Matlab - File conversion

Subject: Mathematica to Matlab - File conversion

From: Nipun

Date: 12 Nov, 2008 23:37:02

Message: 1 of 4

I have got a Mathematica Model from another researcher and I need to convert it into Matlab, as we only have Matlab installed on the university computers. As, I am an absolute novice at Matlab & Mathematica. I will appreciate if you could please advise me how I could convert the Mathematica (*.nb) files into Matlab - so that I can use this Mathematica model in Matlab?

Thank you for your help!

Subject: Mathematica to Matlab - File conversion

From: Per Sundqvist

Date: 13 Nov, 2008 00:09:02

Message: 2 of 4

"Nipun " <nipun1@msn.com> wrote in message <gffpau$hd5$1@fred.mathworks.com>...
> I have got a Mathematica Model from another researcher and I need to convert it into Matlab, as we only have Matlab installed on the university computers. As, I am an absolute novice at Matlab & Mathematica. I will appreciate if you could please advise me how I could convert the Mathematica (*.nb) files into Matlab - so that I can use this Mathematica model in Matlab?
>
> Thank you for your help!
.
In Mathematica there is a function called ToMatlab[], but your friend has to download it and then put in the content there and copy-paste it for you. Could look messy...

I hope its not of programming type or integrals, or symbolic manipulations etc involved. Then there is no such conversion! You must learn to understand whats going on and hen write the program yourself.
.
/Per

Subject: Mathematica to Matlab - File conversion

From: hrh1818

Date: 13 Nov, 2008 00:36:13

Message: 3 of 4

On Nov 12, 5:37=A0pm, "Nipun " <nip...@msn.com> wrote:
> I have got a Mathematica Model from another researcher and I need to conv=
ert it into Matlab, as we only have Matlab installed on the university comp=
uters. As, I am an absolute novice at Matlab & Mathematica. I will apprecia=
te if you could please advise me how I could convert the Mathematica (*.nb)=
 files into Matlab - so that I can use this Mathematica model in Matlab?
>
> Thank you for your help!

Another possibility is use a Mathematica Player to run and display
the .nb file. With a Player at least you could see the Mathematica
code. Yes you would still have to rewrite the code for use with Matlab
but you will be a lot farther ahead than you are now. You can get the
Mathematca Player at: http://www.wolfram.com/products/player/

Howard

Subject: Mathematica to Matlab - File conversion

From: hrh1818

Date: 13 Nov, 2008 00:54:38

Message: 4 of 4

On Nov 12, 6:36=A0pm, hrh1818 <hr...@att.net> wrote:
> On Nov 12, 5:37=A0pm, "Nipun " <nip...@msn.com> wrote:
>
> > I have got a Mathematica Model from another researcher and I need to co=
nvert it into Matlab, as we only have Matlab installed on the university co=
mputers. As, I am an absolute novice at Matlab & Mathematica. I will apprec=
iate if you could please advise me how I could convert the Mathematica (*.n=
b) files into Matlab - so that I can use this Mathematica model in Matlab?
>
> > Thank you for your help!
>
> Another possibility is use a Mathematica Player to run and display
> the .nb file. =A0With a Player at least you could see the Mathematica
> code. Yes you would still have to rewrite the code for use with Matlab
> but you will be a lot farther ahead than you are now. =A0You can get the
> Mathematca Player at: =A0http://www.wolfram.com/products/player/
>
> Howard

Update, Mathematica 6 Notebooks must be converted to a Mathematica
Palyer type document Wolfram provides a free service for doing the
conversion. There is a link to the conversion service on the
http://www.wolfram.com/products/player/ page.

Howard

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us