matlab-compiler

No command MCC found

前提是你 提交于 2019-12-02 01:28:33
I am trying to create an executable using Matlab 2013a in Ubuntu 14.04, and after some research, I understood the following command, creates the executable mcc -mv matlabfile.m However, when I run this command, I get following error No command 'mcc' found, but there are 33 similar ones mcc: command not found Is this an error due to Matlab installation or should I include the compiler into any path variable, so that I can access it using the command mcc.? How do I solve this? UPDATE 1 I ran the ver command in my matlab and am showing the partial output, just to prove it includes Maltab Compiler

Converting Matlab to C++

谁都会走 提交于 2019-12-01 18:13:50
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 cannot be the case) You can compile Matlab scripts into standalone executables, but I'm not familiar with a Matlab tool to convert Matlab code to Visual C++ code. You can convert Matlab code to C or C++ using Simulink Coder (formerly Real-Time Workshop), which is available from Mathworks as a separate product. To run the standalone executable, the user

MATLAB 2014a (8.3) Compiler Runtime Errors libmwlaunchermain.so

放肆的年华 提交于 2019-12-01 16:36:10
MATLAB 2014a (8.3) Runtime Compiler (MCR) Errors when trying to launch deployed (using deploy tool) application in Ubuntu 13.04. Right after installation of MCR if one runs the deployed application following error appears: error while loading shared libraries: libmwlaunchermain.so: cannot open shared object file: No such file or directory. Artur Yakimovich Since I have already found a solution to this problem wasting a day, I just want to share it: This seems to be a problem of MATLAB MCR installation script designed for Linux by MathWorks. Furthermore, it is a result of a known Ubuntu bug .

MATLAB 2014a (8.3) Compiler Runtime Errors libmwlaunchermain.so

冷暖自知 提交于 2019-12-01 15:37:42
问题 MATLAB 2014a (8.3) Runtime Compiler (MCR) Errors when trying to launch deployed (using deploy tool) application in Ubuntu 13.04. Right after installation of MCR if one runs the deployed application following error appears: error while loading shared libraries: libmwlaunchermain.so: cannot open shared object file: No such file or directory. 回答1: Since I have already found a solution to this problem wasting a day, I just want to share it: This seems to be a problem of MATLAB MCR installation

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

不想你离开。 提交于 2019-12-01 06:09:38
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 such: if (!fgets(line, 256, stdin)) return; if (line[0] == '\n') continue; sscanf(line, "%s", command); Answer For completeness I will leave the background and notes intact, but with the help of Amro and EitanT I have managed to work it out. Background I have found how to do this in other languages, and here are some instructions for the compilation

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

荒凉一梦 提交于 2019-12-01 04:08:32
问题 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 such: if (!fgets(line, 256, stdin)) return; if (line[0] == '\n') continue; sscanf(line, "%s", command); Answer For completeness I will leave the background and notes intact, but with the help of Amro and EitanT I have managed to work it out.

Return value from jar file created from Matlab

∥☆過路亽.° 提交于 2019-12-01 01:32:25
问题 I have got a Matlab code which at last calculates a vector of indexes. I used library compiler in order to compile matlab code to a java package .jar file. I exported the jar file in order to run it for my main Java project. The name of the package class is Epidemic. I imported the jar file (add it as an external jar). In main code I tried to create an object of my class (in jar file). I have already defined the name of the class as Epidemic. Thus, my code: import epidemic.Epidemic; ...

Tomcat and Matlab MCR invalid MEX-file error

不问归期 提交于 2019-11-30 19:58:26
问题 I have Tomcat 7 and MCR 8.3 installed on my Ubuntu 14.04 server. Matlab is correctly installed, because I can execute some program, but when I try to execute others i have this error: Invalid MEX-file '/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/mcr/toolbox/matlab/sparfun/etree.mexa64': libmwarpack.so: cannot open shared object file: No such file or directory I set the environment in my /etc/profile.d folder in this way: MCR_ROOT=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83 export PATH=

Matlab Kalman /usr/bin/ld: cannot find -lstdc++

亡梦爱人 提交于 2019-11-30 07:22:32
问题 I'm following the Matlab coder kalman tutorial in Matlab help. When using codegen , there's an error as below: /usr/bin/ld: cannot find -lstdc++ collect2: ld returned 1 exit status But there is libstdc++.so.6 in /lib/ and /usr/lib 回答1: For Fedora 16 use: sudo yum install libstdc++-static 回答2: You can soft link the library to the name that is being sought ln -s /usr/lib/libstdc++.so.6 /usr/lib/libstdc++.so 回答3: If you're compiling a 32-bit application on a 64-bit CentOS 7 : sudo yum install

Exception when initialize dll in c# generated by MATLAB Compiler

为君一笑 提交于 2019-11-29 12:53:27
I used the MATLAB Compiler to generate a .NET Assembly with a very little MATLAB code: function output_arg = extest( input_arg1,input_arg2 ) output_arg = input_arg1+input_arg2; end I generated the dll with the wizard. Within my Visual Studio project I added the reference to the generated dll ( extest.dll ) and to the MATLAB Runtime dll ( C:\Program Files\MATLAB\MATLAB Runtime\v92\toolbox\dotnetbuilder\bin\win64\v4.0\MWArray.dll ) as mentioned in the "Assembly Description". This is my c# code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System