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
4
votes
2 answers

Matlab compiler runtime library

I have developed code on a m-file script in Matlab that communicates with a Measurement Computing USB-DAQ module, and I'm quite happy with that. The problem is that I don't want to purchase another license for the computer which is running the code.…
stanigator
  • 10,768
  • 34
  • 94
  • 129
4
votes
2 answers

How to avoid duplicate initialization of .mex (matlab compiled code)?

I have Matlab code that calls a MEX generated from c++ code. The c++ code requires heavy memory allocation and calculations upon initialization. Using a static pointer, initialization is done only on the first call and the pointer is read from on…
Leo
  • 309
  • 3
  • 8
4
votes
3 answers

build a standalone application from Matlab code

I have some Matlab code and a GUI for it and I want to make a standalone app to Protect my Source Code. How can I build this standalone? Thank you for any guide. ================================================================================ I…
4
votes
3 answers

Matlab-Python compiler SDK fails with "undefined symbol: XML_SetHashSalt"

I am working on Ubuntu 16.04 64-bit with Matlab R2018a and using Python 3.6 (and 3.5 and 2.7 installed but not using). I have a Matlab code which am trying to call from Python by using and following the instructions on the Matlab Compiler SDK for…
AVJ
  • 213
  • 3
  • 11
4
votes
0 answers

How to specify output type in MATLAB when using calllib

Can I specify the output type when using calllib? My problem is MATLAB is automatically converting my output to a double even though I need an int64 and am losing needed precision. Example I have the following function defined in my_header.h __int64…
J. Doe
  • 41
  • 1
4
votes
1 answer

How to run Matlab compiled Java function?

I have compiled a Matlab script to Java with Matlab compiler SDK. Everything worked fine. Matlab generated a Jar.file and i included it into my Java Project in eclipse. Now my Problem is, the matlab script contains a complex algorithm function. This…
Khan
  • 1,418
  • 1
  • 25
  • 49
4
votes
1 answer

Matlab and Java 8

I'm going to develop a complex Java application which should run on a machine with Debian 8.6 and JRE 8u71 installed. Furthermore, the application makes use of some Java classes, developed and compiled in Matlab. By now, Matlab (Version R2015b -…
bushmills
  • 673
  • 5
  • 17
4
votes
1 answer

Can Matlab deploytool compile files with javax.swing elements?

Suppose I have a set of codes to display a JFrame, a JPanel, and a JLabel. This works fine if I run it as a script file. It just shows a tiny window with a label that says "A label" exactly like you would expect: frame =…
Will
  • 1,078
  • 1
  • 8
  • 8
4
votes
1 answer

Call stack in compiled matlab

In matlab one can use dbstack to retrieve the call stack at the current time, however dbstack is not available in standalone compiled versions of matlab programs, is there an alternative to get the call stack, or at least the function calling the…
wich
  • 16,709
  • 6
  • 47
  • 72
4
votes
3 answers

How can I package a MATLAB application that utilises toolboxes?

I want to package up an application in MATLAB for another team to use. They will have an appropriate version of MATLAB to run this application, but they might not necessarily have licenses for all the toolboxes used by the application. Is there a…
Samuel O'Malley
  • 3,471
  • 1
  • 23
  • 41
4
votes
1 answer

Matlab MCR expired

I have the Matlab Compiler Runtime installed on my machine. It was working fine, but now when I run some code that needs it I get this error: Failed to initialize MCR Instance: The specified component has expired. I thought the MCR was basically a…
user814425
  • 605
  • 8
  • 19
4
votes
2 answers

How to compile Matlab class into C lib?

The origin of this question is from here How to use "global static" variable in matlab function called in c. I'm trying to encapsulate the "global variable" into an object. However I don't know how to export the matlab class to c++ using MATLAB…
SolessChong
  • 3,370
  • 8
  • 40
  • 67
4
votes
1 answer

Determining whether file is compiled (in exe')or not in matlab

So I have a piece of MATLAB code which I am compiling in exe. This exe file is to be used by people who don't have MATLAB installed. But the original m file is also in use by some advanced users. There are some features that I can't provide in the…
Adnan
  • 584
  • 1
  • 15
  • 27
3
votes
1 answer

Hyperlink causes compiled MATLAB application to crash

I have a compiled matlab application, which has a gui. This gui also contains a webpage within it, index.html. In the html, there is a hyperlink to a website. I want matlab to load the webpage in an external browser when this link is clicked.…
Jgd10
  • 497
  • 2
  • 14
3
votes
2 answers

debug code in standalone matlab

Say I have some function foo that is used in a standalone application, (ie. compiled into an executable with mcc -m,) which has an important intermediate result bar. Normally I don't need this intermediate result after completion of the function and…
wich
  • 16,709
  • 6
  • 47
  • 72
1 2
3
31 32