Questions tagged [matlab-compiler]

MATLAB Compiler™ lets you share your MATLAB® application as an executable or a shared library. Consider also the tag matlab-deployment.

MATLAB Compiler™ lets you share your MATLAB® application as an executable or a shared library. Executables and libraries created with MATLAB Compiler use a runtime engine called the MATLAB Runtime. The MATLAB Runtime is provided with MATLAB Compiler for distribution with your application and can be deployed royalty-free.

468 questions
7
votes
1 answer

Calling MATLAB from C++ errors: unresolved external symbol

I encounter several errors when calling my MATLAB function from C++. The main idea is: firstly compile a MATLAB function and generate DLL file, and then include .h and .lib files in C++. Finally, write .cpp to test and call the function. Here's my…
WangYudong
  • 4,335
  • 4
  • 32
  • 54
6
votes
1 answer

Matlab: How to survey compiled m-code progression from external API?

My question is extremely specific to the arcanes of the matlab compiler and runtime. As only people familiar with matlab runtime API may answer, I shortened much details. Please let me know if I should be more verbose. Introduction Using the matlab…
CitizenInsane
  • 4,755
  • 1
  • 25
  • 56
6
votes
2 answers

Deploytool for MATLAB R2013b doesn't work, what has changed?

For years I've been using the integrated deploytool to create easily distributable *.exe files for my colleagues. I installed R2013b a couple of days ago and I can't use the deploytool anymore. The log file when trying to package gives…
6
votes
1 answer

Command line does not wait until the exe execution is finished

I converted my matlab program to a standalone exe. When I call the exe from the command line it does not wait till the exe is executed. The program takes about 20-30sec to run. The program basically creates a txt file. How can I make it to wait…
user1583647
  • 1,227
  • 2
  • 24
  • 48
6
votes
3 answers

Calling mxDestroyArray on mxArray objects returned from Matlab Compiler Runtime

We've been interfacing with a library created from the Matlab Compiler. Our problem is related to an array returned from the library. Once we're finished with the array, we'd like to free the memory, however, doing this causes occasional…
6
votes
1 answer

Matlab onCleanup with Compiled applications (windows)

I have an application made with matlab compiler. I want to do some shutdown activities whenever it ends. As it seems to be impossible to catch signals in matlab (or I'm not able to), I checked to use onCleanup (Matlab: Is it possible to create…
Bastian Ebeling
  • 1,138
  • 11
  • 38
5
votes
3 answers

Converting Matlab to C++

I need to convert some MATLAB code to C++. I am using Visual Studio 2010 and have MATLAB compiler installed. I am wondering how do I go about doing this. Also when I publish my project will the end user have to install anything by MATLAB? (this…
ddd
  • 269
  • 1
  • 6
  • 15
5
votes
1 answer

Help: VS2005 Compile *.m file

all I have test.m( matlab source code) file which implement A() function; and main.cpp file (will call A() ). as you know ,we may do like the following steps: use matlab to compile test.m (mcc -) ,will generate : test.dll, test.ctf,test.h . copy…
Price
  • 51
  • 2
5
votes
1 answer

Matlab Compiler: protecting re-distribution of software during installation

I'm considering using Matlab Compiler to distribute software for a price. I'm investigating (very) simple methods to discourage re-distribution without annoying users. Any recommendations? One thought is to email a user a license key and have them…
user46688
  • 733
  • 3
  • 11
  • 29
5
votes
5 answers

Creating a standalone app from Matlab code

I have some Matlab code and a GUI for it and I want to make a standalone .exe so that it can be used on computers that don't have Matlab installed. I know about the Matlab compiler and how to use it, but that creates an .exe that only works if the…
user384918
  • 233
  • 2
  • 7
5
votes
1 answer

How to disable display scaling on high DPI settings of an exe generated by Matlab compiler

I don't like the Windows auto scaling on high DPI settings. So I normally turn the scaling off by check the settings on Compatability of the exe properties. I used Matlab compiler to generate an exe, but its Disable display scaling on high DPI…
Splash
  • 1,288
  • 2
  • 18
  • 36
5
votes
2 answers

Using standard io stream:stdin and stdout in a matlab exe

Question I want it to 'listen' to the standard input stream in a running (compiled) Matlab executable. This is how I believe it is done in c or a similar language: #include stdio.h fgets(line, 256, stdin) Or more elaborately, it it can be used as…
Dennis Jaheruddin
  • 21,208
  • 8
  • 66
  • 122
5
votes
1 answer

MATLAB engine versus libraries created by MATLAB Compiler?

To call MATLAB code in C or C++, how do you choose between using the MATLAB engine and using the MATLAB Compiler mcc to create C or C++ shared libraries from your MATLAB code? What are their pros and cons? For the second method, see…
Tim
  • 1
  • 141
  • 372
  • 590
5
votes
1 answer

How to use "global static" variable in matlab function called in c

Hi I'm currently coding in MATLAB and C. I have compiled MATLAB functions into a C shared library using MATLAB Compiler (mcc), and called the functions in the shared library in a C++ program. Can a global variable be declared to share data between…
SolessChong
  • 3,370
  • 8
  • 40
  • 67
5
votes
1 answer

Create a DLL from MATLAB

I have created a DLL in MATLAB which provides me an interface to my .m functions. Now I would like to use it with the MCR Runtime Library. (MCR = Matlab Compiler Runtime). I am calling this DLL from within a C routine which eventually gets compiled…
glglgl
  • 89,107
  • 13
  • 149
  • 217
1
2
3
31 32