Stand Alone Code from Matlab.m

I have compiled Mycode.exe from my matlab code and I want to run it on a computer that doesn't have Matlab. Is there anyway to make a stand-alone code that doesn't require me to load MCR on my other systems? I am using Windows on them all but some have XP, some have 2000, some have 7... Ideas?

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 11월 23일

1 개 추천

The only way you can currently create a completely standalone executable from MATLAB code is using MATLAB Coder. However, you can only use the subset of functions supported for code generation.

댓글 수: 1

Daniel Shub
Daniel Shub 2011년 11월 23일
I never remember the coder. I need to look into it more.

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Daniel Shub
Daniel Shub 2011년 11월 23일

0 개 추천

To run compiled MATLAB you must have the MCR. It is a lot like running a java or flash application in that you need the computer to have the runtime environment installed.
If some machines are 32 bit and others are 64 bit, you will need to compile two versions. You may also have to compile different versions for Windows 2000, XP, and 7, since I do not think there is a single version of MATLAB that works on all of them. This may not be a problem.

댓글 수: 1

John Ogren
John Ogren 2011년 11월 23일
Thanks Daniel. So... there is no way to create a library (or something like it) that contains all of the necessary functions / environments so that I can run my code on any system? I was really hoping to be able to carry the software with me and run it anywhere without having to install anything.

댓글을 달려면 로그인하십시오.

Walter Roberson
Walter Roberson 2011년 11월 23일

0 개 추천

There is MATLAB Coder, which will generate C / C++ code from MATLAB code, with a number of restrictions.
deploytool from MATLAB Compiler can bundle up MCR as part of the self-extracting archive, but that is just a more convenient way of installing MCR.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by