-4

I am looking to compile a .m file (program) from MATLAB to Linux. I have done it on Windows operating system using

mcc -mv FILENAME.m

I see on the MATLAB website that I can use GNU g++.

Does this work in a similar way to the MATLAB compiler by just writing one line of code in MATLAB or do I have to run it in the Linux terminal?

Also, does this compiler tend to have issues regarding getting the desired output?

Amro
  • 123,847
  • 25
  • 243
  • 454
StevenG
  • 19
  • 1
  • 2
  • 4

2 Answers2

1

What you want to do, is called crosscompiling. Here you want from a Windows computer cross compile a Matlab program to a native Linux executable. As of 2009, this was not possible and most likely isn't now either.

Prof. Falken
  • 24,226
  • 19
  • 100
  • 173
  • Thank you for your reply but I am not looking to install MATLAB on linux. I am looking to compile a MATLAB program in Linux so that I can run the .exe file from the terminal as this produces output faster. – StevenG Jul 01 '12 at 23:49
0

Perhaps you might try using Octave for Linux.

Download GNU Octave

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
user13267
  • 6,871
  • 28
  • 80
  • 138