matlab-deployment

Reading .wav file in Matlab Coder

别等时光非礼了梦想. 提交于 2019-12-11 08:45:39
问题 I want to read an audio file with matlab coder . The problem is that wavread() is not supported, but as this is a pretty essential part of any audio coding I am thinking that there must be another way to achieve this? Any ideas? 回答1: What is your use case? If you really just want to run the generated code in a MEX-function within MATLAB you can use coder.extrinsic to call wavread. This will not work outside of the MATLAB environment. Outside the MATLAB environment, you will need to use custom

Can VS 2010 Setup Include MCR as prerequisite?

非 Y 不嫁゛ 提交于 2019-12-11 07:12:58
问题 I have a project that I'm trying to build an installer for using a Visual Studio setup project. I'm wondering if there is a way to get the MatLab Compiler Runtime included as a prerequisite. Right now I have to include the MCRSetup.exe and have the user run that first and then my installer. Not too onerous but I was just wondering if there is a way to make it all happen in one step, so that the MCR stuff gets installed the same way that .NET and the C++ runtime libs get installed. I did try

link path confusion after target_link_libraries call

喜夏-厌秋 提交于 2019-12-11 03:48:26
问题 I have a cmake project where I want to add a class containing the matlab engine. For compiling it I need to include two libraries eng and mx , which I do by adding target_link_libraries( ${TARGET} /usr/local/MATLAB/R2013b/bin/glnxa64/libeng.so) target_link_libraries( ${TARGET} /usr/local/MATLAB/R2013b/bin/glnxa64/libmx.so) to my CMakeLists.txt file. However there are also lots of other old versions of libraries in /usr/local/MATLAB/R2013b/bin/glnxa64/ , which seem to be automatically added to

What is the scope of Matlab's import function?

非 Y 不嫁゛ 提交于 2019-12-11 02:19:48
问题 I'm trying to turn some code written in Matlab into a standalone, compiled Matlab application. However, after getting some odd errors, I realized that the code makes a lot of use of adding and removing from the path to get around the fact that there are several functions with the same name (but different results/calculations) used multiple times. Looking around, I discovered that you can turn a folder into a package by putting a "+" in front of its name, and going through and making sure the

Passing C/C++ callbacks into the matlab engine

空扰寡人 提交于 2019-12-10 09:44:18
问题 I have a C++ file that: starts the matlab engine calls matlab_optimize() (a compiled m file that runs one of matlab optimizers internally) prints the result stops the engine and quits This works fine. I now want to change the second line into calls matlab_optimize(obj_fun) Where obj_fun() is a function defined in my C++ code which itself will callback into other code. Essentially I want the matlab optimizer used internally in matlab_optimize to use my supplied function pointer as the

build a standalone application from Matlab code

↘锁芯ラ 提交于 2019-12-10 08:59:19
问题 I have some Matlab code and a GUI for it and I want to make a standalone app to Protect my Source Code. How can I build this standalone? Thank you for any guide. ================================================================================ I found in help: If you do not want to distribute your proprietary application code in this format, you can use one of these more secure options instead: • Deploy as P-code — Convert some or all of your source code files to a content-obscured form called

How can I use Matlab objects in compiled .NET assemblies?

醉酒当歌 提交于 2019-12-06 06:33:04
问题 I have a basic Matlab class which I want to instantiate in C#. classdef MyClass properties Value end methods function obj=MyClass(v) obj.Value = v; end function display(obj) disp(obj.Value); end end end This is then built into a .DLL file and imported in a C# project along with the associated Matlab namespaces (MathWorks.MATLAB.NET.Arrays, MathWorks.MATLAB.NET.Utility). On the C# side, I am trying to build an instantiation of this class thus: Untitled2.MLTestClass matlab = new Untitled2

Executing a Matlab function using java

不羁岁月 提交于 2019-12-06 06:13:09
问题 I'm writing an application which does image processing using matlab and later displays the result using Java's Interface. Due to certain reasons I've to use both Java and Matlab. How can I use the matlab function in java ?? How to create and access the interface. 回答1: matlabcontrol is a Java API which will allow you to call your image processing functions or scripts and return the results to Java. To get started, take a look at the walkthrough. 回答2: MATLAB Builder JA is one option to use

How to read from stdin in Matlab

不想你离开。 提交于 2019-12-06 05:48:26
问题 I have a long-running Matlab script for data processing. I want to send it a flag over stdin to tell it I have new data to process. I also want to read a flag from stdout when it is done processing. In other words, I have a Process A that sends a flag about once a minute to Matlab. I want Matlab to wait until it receives this flag. Writing to stdout in a matlab process is as easy as calling fprintf . But how can I read from stdin? Documentation on fopen doesn't mention an input pipe, and

How to make the MCR starting time fast

北慕城南 提交于 2019-12-05 19:05:26
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. Not a whole lot you can do here directly. The MCR architecture has a high startup cost; it's not great for repeatedly-called short running programs. You can make it faster by: Making sure