matlab-deployment

Is it possible to call matlab functions from Silverlight / C#?

拜拜、爱过 提交于 2019-12-23 12:41:03
问题 Is it possible to call matlab functions from Silverlight / C# ? 回答1: If you have an assembly (dll) that can interpret Mathlab calls, you should be able to include that assembly in your project and compile it with the rest of your application. Obviously, you won't be able to run Silverlight side-by-side to interface with an installed instance of Matlab (unless the API is exposed through COM interop and using Silverlight 4, but that could get messy). The Web API on sourceforge, as mentioned by

How to make the MCR starting time fast

我与影子孤独终老i 提交于 2019-12-22 08:57:28
问题 I converted my matlab program into a .net assembly i.e a dll file. I have made a console C# application adding the dll file and called it from php. The MCR is called everytime the .exe is called. How can I make the MCR to initialize on the starting up of server and not closing everytime even if the exe is called after a certain time??And if there are any other methods to make this process fast please suggest. 回答1: Not a whole lot you can do here directly. The MCR architecture has a high

Can we deploy the matlab generated java code on any other machine which is not having Matlab?

荒凉一梦 提交于 2019-12-21 21:33:25
问题 I have generated a java code from matlab and while executing the java code in Eclipse it is using mclmcrrt711.dll file in matlab compiler runtime, when i try to execute the java code in another machine which is not having matlab or matlab compiler it is giving me the error:"java.lang.UnsatisfiedLinkError: Failed to find the library mclmcrrt711.dll, required by MATLAB Builder JA, on java.library.path" i tried adding the mclmcrrt711.dll file to the library and by setting system path to that dll

How can I write the Matlab “filter”-function myself?

痞子三分冷 提交于 2019-12-21 02:59:26
问题 I would like to use a Butterworth filter on a 1D-Signal. In Matlab the script would look like this: f=100; f_cutoff = 20; fnorm =f_cutoff/(f/2); [b,a] = butter(8,fnorm,'low'); filteredData = filter(b,a,rawData); % I want to write this myself Now I don't want to directly use the filter -function given in Matlab but write it myself. In the Matlab documentation it's described as follows: The filter function is implemented as a direct form II transposed structure, y(n) = b(1)*x(n) + b(2)*x(n-1) +

Where can I find a formal grammar for MATLAB?

爷,独闯天下 提交于 2019-12-20 09:06:51
问题 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 seems that Mathworks do not provide one. Does anyone know where I could find such a document? 回答1: Excellent opportunity to write your own formal grammar :) If you should choose to write the grammer your self, I can recommend BNFC which can take a

Converting Matlab to C++

混江龙づ霸主 提交于 2019-12-19 19:54:33
问题 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) 回答1: 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

How to compile Matlab class into C lib?

旧城冷巷雨未停 提交于 2019-12-18 06:48:09
问题 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

How to run MATLAB code from Java?

天涯浪子 提交于 2019-12-18 06:39:33
问题 I am facing problem in running MATLAB code from Java. If you know something on this, could u please help me out? 回答1: If you don't want to buy MathWork's MATLAB Builder for Java Toolbox, you can use MATLAB's undocumented JMI (Java-MATLAB Interface). Search the CSSM newsgroup (or Google) for JMI, or JMatLink which is based on JMI. The MATLAB code itself is full of JMI usage examples - search "jmi" using the MATLAB Editor's search tool over the entire MATLAB installation. Note that JMI is

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

扶醉桌前 提交于 2019-12-17 18:26:10
问题 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 to C's argv[] , where you do the following: Command line: myfile argument1.txt argument2.txt where argument 1 and 2 are the input and output files. The exact syntax doesn't matter, but it should work like argv[] . What is a function that could do

MATLAB Compiler vs MATLAB Coder

隐身守侯 提交于 2019-12-17 08:25:33
问题 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 produce .Net assemblies to be used with .Net framework instead of the .exe file, but they still require MCR. Now I don't understand what MATLAB Coder used for? It generates C/C++ code. But is the MATLAB code really converted into C/C++, or is it