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
3
votes
1 answer

Including multiple folders (with images, scripts, etc) within a Matlab standalone GUI.exe

I have a software that has multiple GUIs. To organize things better (or at least that was my thought), I have created several folders within the root directory as it can be seen in this image. Within the folders i have both files with different…
16per9
  • 502
  • 4
  • 17
3
votes
2 answers

LINK : fatal error LNK1104: cannot open file 'ucrt.lib'

Currently I am building a model for Simulink Real-Time and have Microsoft Visual C++ Compilers Community 2015 as my compiler for Simulink Real-Time. When I try to build my model it gives the following error: ### Linking ... link.exe /nologo…
3
votes
1 answer

Matlab Unknown class error after compiling script containing TCPIP

I compiled a script that uses the tcpip function from the instruments toolbox using MCR_R2015a. Running the generated executable on the PC I used for compiling (Windows7) is not a problem, however running it on another PC (Windows10, no Matlab…
3
votes
1 answer

Matlab Compiler SDK plot waitforFigures function multiple threads

I have created a simple plot with matlab and created a java jar with matlab compiler sdk. I can run the java function created by matlab and see my plot. I wanted to create multiple plots and started the function in separate threads. It works. But if…
Khan
  • 1,418
  • 1
  • 25
  • 49
3
votes
1 answer

java.lang.UnsatisfiedLinkError even though LD_LIBRARY_PATH and -Djava.library.path were set

OS is Linux Ubuntu 16.04 LTS (The application runs absolutely fine on Windows, I did not have to configure anything after the installation of Matlab Compiler SDK) I am writing a web application in Java which also calls some functions written in…
Trash Can
  • 6,608
  • 5
  • 24
  • 38
3
votes
3 answers

How to convert while loop into for loop in matlab?

i=1; while i:length(array) if (array(i)<=1000) array(i)=[]; else i=i+1; end end This is a matlab code. can any body tell me how do i convert this into for loop.
3
votes
1 answer

How to catch errors from the MATLAB applicationCompiler command

I am using the command applicationCompiler -package harmonic_viewer.prj to compile a MATLAB program for distribution. Sometimes I miss a file and the application compiler throws an error. I would like to catch such errors and pass the error up to…
Nigel Davies
  • 1,640
  • 1
  • 13
  • 26
3
votes
0 answers

Compilation matconvnet - vl_compilenn

I am using 64bit MATLAB trial R2015b in Linux mint. I am trying to compile the CPU version of the library. When I try to configure compiler for mex using command mex -v GCC='/usr/bin/gcc-4.7' timestwo.c It shows me an error In file…
tt817263
  • 31
  • 3
3
votes
0 answers

Compile Java Library (.jar) for Linux on Windows

I am using the MATLAB Library Compiler to compile a Java .jar on Windows. In my project I have some precompiled mexw64 and mexa64 files. The problem is that mexw64 files are automatically selected. How do I select mexa64 instead. Manually adding…
user2939415
  • 864
  • 1
  • 11
  • 22
3
votes
1 answer

Installing MATLAB Runtime on CentOS 7

I am trying to install the MATLAB Runtime (see www.mathworks.com/products/compiler/mcr) on Cent0S 7. I think I have installed MCR correctly because the install finishes through saying it completed after running sudo ./install -mode silent…
geo derek
  • 395
  • 2
  • 5
  • 16
3
votes
3 answers

How compile training neural network as stand-alone app in MATLAB?

I want to compile my MATLAB application that uses neural networks to a stand-alone application, but as you know MATLAB can't compile training neural network as stand-alone and can only compile already trained neural networks. The core of my…
Eghbal
  • 3,892
  • 13
  • 51
  • 112
3
votes
1 answer

Integrating matlab functions into c# project

I have a nice .net assembly of core matlab functions, created of course with the matlab compiler. For functions that accept numbers or arrays of numbers, this is fine; I can write code in c# without having to revert to matlab (well, the RCM has to…
Randhir Rawatlal
  • 365
  • 1
  • 3
  • 13
3
votes
1 answer

Running Matlab Code from dot net

I've compiled a little program using matlab 2013 I can see in my dll: Test.TestMethods all my functions I've added it as a reference to my dot net project, and added the MWArray dll from matlab bin\win64\v2.0 folder. ** Update: The app crushes at…
Dani
  • 14,639
  • 11
  • 62
  • 110
3
votes
3 answers

How to initialize and load MCR

I incorporated C++ shared library generated from MATLAB in a Win32 console application. The MATLAB program takes 2-3 sec to execute in MATLAB but the console application takes 11-12 seconds to execute. I read this is because of the start up time of…
user1583647
  • 1,227
  • 2
  • 24
  • 48
3
votes
2 answers

"Out of memory" error for standalone matlab applications - memory fragmentation

I have to deliver an application as a standalone Matlab executable to a client. The code include a series of calls to a function that internally creates several cell arrays. My problem is that an out-of-memory error happens when the number of calls…
imriss
  • 1,815
  • 4
  • 31
  • 46