matlab-deployment

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

'javac' is not recognized as an internal or external command

妖精的绣舞 提交于 2019-12-01 04:01:23
问题 I have to convert my Matlab algorithm in Java. For this I'm using matlab builder ja toolbox, after following all the necessary steps, the build fails and this error is displayed: 'javac' is not recognized as an internal or external command, operable program or batch file. Error: An error occurred while shelling out to javac (error code = 1). Unable to build executable. When typing java -version in the matlab command line, this is what i get: Java 1.6.0_12-b04 with Sun Microsystems Inc. Java

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; ...

Matlab and Java integration

不问归期 提交于 2019-11-30 18:26:53
问题 I have done image processing in MATLAB and build my GUI in Java. I want to integrate MATLAB into Java. I want to use MATLAB Builder for this purpose. I want also to use neural network for classification. There are some excel files also. Is it possible that this code will be integrated in Java? My other question is that I want used MATLAB BuilderJA to know how it works. When I type java -version command, it gave me this error. ??? Attempt to execute SCRIPT java as a function: C:\Program Files

MATLAB ButtonDownFcn

烈酒焚心 提交于 2019-11-30 16:39:38
I have a project of "Optical Character Recognition" in MATLAB and i need your help: how do i recognize when the user press the mouse on an image? i trying to do this with ButtonDownFcn but even when i just printing message the message is not printed. i want to allow the user to select the license plate from the image. how can i do this and save the Pixels of the selected area? thanks in advance. Addressing your two questions: I'm guessing that you are trying to set the 'ButtonDownFcn' of the figure window , which won't work how you expect it to. If you want to do something when the user clicks

MATLAB ButtonDownFcn

怎甘沉沦 提交于 2019-11-30 16:15:53
问题 I have a project of "Optical Character Recognition" in MATLAB and i need your help: how do i recognize when the user press the mouse on an image? i trying to do this with ButtonDownFcn but even when i just printing message the message is not printed. i want to allow the user to select the license plate from the image. how can i do this and save the Pixels of the selected area? thanks in advance. 回答1: Addressing your two questions: I'm guessing that you are trying to set the 'ButtonDownFcn' of

matlab neural network toolbox

ⅰ亾dé卋堺 提交于 2019-11-29 12:56:29
I used the matlab neural network to train on some data but I want to run this neural network in c++ program,how to do that? jimmycleveland You can use ML to generate your feature set (input layer) and then use an open source C++ NN implementation to do training/classification. (E.g., http://takinginitiative.net/2008/04/23/basic-neural-network-tutorial-c-implementation-and-source-code/ ) If you want to use ML to train and C++ to classify it shouldn't be too difficult to write some additional code to write out the trained network in a way that can be read in by the C++ classifier. You can use

How to compile Matlab class into C lib?

半城伤御伤魂 提交于 2019-11-29 11:27:19
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 Compiler (mcc) To do this I just tried the standard command Matlab Command mcc -W cpplib:Vowel4 -T link:lib Vowel4.m Matlab Script classdef Vowel4 properties x y end methods Vowel4 A B end end The generated lib is actually stand-alone functions rather than c++ class. How can I compile classes in Matlab into c++ classes? I've been searching for an

How to Call Matlab Functions from C++

百般思念 提交于 2019-11-28 22:54:19
问题 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 compiler (File-> new -> Deployment Project and then choose C++ shared Library). It produces this files 2 folders: distrib and src. distrib contains: foo.dll foo.h foo.lib src contains : foo.cpp foo.dll foo.exp foo.exports foo.h foo.lib foo_mcc_component

How to run Matlab code on an Android device?

戏子无情 提交于 2019-11-28 08:43:13
I would like to run Matlab code on an Android device. There is the JAVA Builder in Matlab, which can create Java classes from the M-Files. But it requires a MatlabRunTime to be installed on the target machine. I use Matlab on Windows, so the JAVA Builder creates a MatlabRunTime as *. Is there a way to run M-Files on an Android Smartphone? It's not possible to use any of the deployment products (including MATLAB Compiler and MATLAB Builder for Java) to run MATLAB code on Android. The deployed components you get from any of those products depend on the MATLAB Compiler Runtime, which has a much