Questions tagged [matlab-deployment]

MATLAB is a high-level language and programming environment developed by MathWorks. This tag relates to the deployment of MATLAB algorithms and applications, including integration of MATLAB code with other languages such as C/C++, .NET and Java, and use of add-on products such as MATLAB Compiler, MATLAB Builder NE for .NET, MATLAB Builder JA for Java and MATLAB Builder EX for Excel.

MATLAB is a high-level language and programming environment developed by MathWorks.

A number of add-on products are available for MATLAB that enable deployment of MATLAB algorithms and applications to standalone executables and components, including:

This tag relates to the creation, use and integration of these components.

In addition, the tag also relates to other methods of deployment, including direct integration of MATLAB code with other languages such as C/C++, .NET and Java.

Additional sources of technical information on these topics include:

534 questions
46
votes
4 answers

MATLAB Compiler vs MATLAB Coder

What's the difference between the two? As far as I understand it, MATLAB Compiler wraps the MATLAB code into a .exe file so that it can be used without installing MATLAB, and only requires the MCR. On top of it MATLAB Builder NE can also be used to…
Win Coder
  • 6,628
  • 11
  • 54
  • 81
45
votes
6 answers

Matlab Coder vs hand coding?

Some background for people reading this in the future (in case it's not locked). I tend to do my programming in a high level language to understand the problem first. After covering all possible corner cases I proceed to translating the code to C++…
s5s
  • 11,159
  • 21
  • 74
  • 121
29
votes
5 answers

What's the "right" way to organize GUI code?

I'm working on a fairly sophisticated GUI program to be deployed with MATLAB Compiler. (There are good reasons MATLAB is being used to build this GUI, that is not the point of this question. I realize GUI-building is not a strong suit for this…
Dang Khoa
  • 5,693
  • 8
  • 51
  • 80
28
votes
5 answers

Where can I find a formal grammar for MATLAB?

I would like to write a lexer generator to convert a basic subset of the MATLAB language to C#, C++, etc. To help me do this, I would like to find a document containing the formal grammar for MATLAB. Having spent a bit of time investigating this, it…
Dave Maff
  • 798
  • 8
  • 12
28
votes
3 answers

How can I pass command line arguments to a standalone MATLAB executable running on Linux/Unix?

How can I pass command line arguments to a standalone MATLAB executable running on Linux/UNIX? I need to compile my MATLAB script as a standalone file that can be run on a machine without MATLAB present. It needs to be able to work in a way similar…
23
votes
4 answers

MATLAB executable is too slow

I converted my MATLAB program into a console-based application using the deploytool in MATLAB. The MATLAB .m file takes around 2 seconds to execute, but after I converted it into an executable and called the .exe, it takes 45 seconds to execute…
user1583647
  • 1,227
  • 2
  • 24
  • 48
20
votes
7 answers

Interoperating between Matlab and C#

After peeking around the internet it looks like it is possible to interop between C# and Matlab. I am wondering if anyone has had success with it and what they did to do so. If possible somehow pulling it off without the use of COM. Thanks for your…
smaclell
  • 4,568
  • 7
  • 41
  • 49
18
votes
4 answers

How can I run MATLAB code for isolated spoken words recognition from PHP?

As the title indicates, I have MATLAB code for isolated spoken words recognition, and I want to be able to integrate this project with another one made with PHP for some purpose. I have not used to deal with such problem before. In other words, it's…
mamdouh alramadan
  • 8,349
  • 6
  • 36
  • 53
15
votes
2 answers

How to Call Matlab Functions from C++

I want to call MATLAB function in my C++ project. I'm using Matlab R2010a and Visual Studio 2010 First I created a simple matlab function: function y = foo(x) y = x+1; and then I used matlab compiler to compile this function using matlab GUI…
Amr Ramadan
  • 1,259
  • 5
  • 18
  • 29
14
votes
3 answers

Calling a MATLAB function from C#

I developed a MATLAB function, and I'm looking for a way to call that function from another C# application and pass some parameters to it and get the results in the C# program. I heard that I can use Dynamic Data Exchange (DDE) or COM objects, but…
Wassim AZIRAR
  • 10,823
  • 38
  • 121
  • 174
12
votes
5 answers

Is there an easy way to provide a Matlab-based Web App or Web Service?

A colleague and I have spent a few years developing a really cool Matlab application, MDLcompress. Within Matlab, I can type "MDLcompress('filename.txt')" and it will tell me all sorts of really cool stuff about the contents of filename.txt. We'd…
PlexLuthor
  • 578
  • 2
  • 8
  • 16
12
votes
3 answers

How to call MATLAB code from C?

I have some code that plots triangles in MATLAB. I need to be able to somehow execute this code from my C program which generates these points. Is that possible? How can it be done? Just a thought: Can I somehow embed MATLAB code in C, so that it…
Lazer
  • 90,700
  • 113
  • 281
  • 364
10
votes
3 answers

Matlab deployment: add files to source control?

I've created a deployment project which works rather well and now I want to add it to source control repository for others to use. The main problem I'm facing is that the .prj file which deploytool creates contains absolute paths which will not work…
shoosh
  • 76,898
  • 55
  • 205
  • 325
10
votes
4 answers

Get the location of a deployed Matlab application at runtime for Mac and Linux

I have some standalone Matlab programs that for different reasons need to access files in the directory they're located (either to launch another program or to read some XML files there). I have the following function that works for…
ackrause
  • 442
  • 5
  • 11
9
votes
1 answer

Which was the latest Matlab version that allowed to install MCR without Administrator rights?

I want compile some GUI into a Windows standalone application (*.exe). The main idea is run my applications in different computers WITHOUT the necessity of privileges to run it. While doing these steps, I noticed that when I want to run…
FZNB
  • 2,703
  • 3
  • 17
  • 17
1
2 3
35 36