matlab-compiler

mcc -mv in linux machine R2013a

守給你的承諾、 提交于 2020-01-17 08:34:31
问题 When I am trying to make executable files of my .m -files on a Linux machine, some of the the .m -files are working absolutely fine. However, one file which has camera input inside the .m -file is giving me this error: Depfun error: 'Unexpected Standard exception from MEX file. What() is: ..' Error using mcc Error executing mcc, return status = 1 (0x1). But when I use the same .m -file on Windows and R2012a it is working properly without any error. I found a bug report here - is this a

Deploytool for MATLAB R2013b doesn't work, what has changed?

强颜欢笑 提交于 2020-01-03 10:07:20
问题 For years I've been using the integrated deploytool to create easily distributable *.exe files for my colleagues. I installed R2013b a couple of days ago and I can't use the deploytool anymore. The log file when trying to package gives this: ant: <ant> <mkdir dir="C:\Users\xxxx\Matlab\programxy\test\for_redistribution" /> <mkdir dir="C:\Users\xxxx\Matlab\programxy\test\for_testing" /> </ant> mcc -C -o test -W WinMain:test -T link:exe -d 'C:\Users\xxxx\Matlab\programxy\test\for_testing' -v 'C:

How to install a compiler on Windows? (For a Matlab program)

不问归期 提交于 2020-01-03 05:01:11
问题 I have downloaded this code; http://www.cs.sfu.ca/%7Emori/research/superpixels/superpixels64.tar.gz In the readme file, it says; Run mex -largeArrayDims on *.c in yu_imncut directory -largeArrayDims is needed for 64bit architectures (thanks to Richard Lowe for providing fixes for 64bit MATLAB) Obtain mfm-pb boundary detector code from http://www.cs.berkeley.edu/projects/vision/grouping/segbench/ Change path names in sp_demo.m and pbWrapper.m Get a fast processor and lots of RAM Run sp_demo.m

How to use “global static” variable in matlab function called in c

不打扰是莪最后的温柔 提交于 2020-01-02 04:41:10
问题 Hi I'm currently coding in MATLAB and C. I have compiled MATLAB functions into a C shared library using MATLAB Compiler (mcc), and called the functions in the shared library in a C++ program. Can a global variable be declared to share data between MATLAB functions when called in C++? To be exact, if there is a function matlabA() and function matlabB() in matlab, and is compiled into c++ shared library using mcc compiler as cppA() and cppB() , can I share a variable between them just by

Calling MATLAB from C++ errors: unresolved external symbol

断了今生、忘了曾经 提交于 2020-01-02 03:30:15
问题 I encounter several errors when calling my MATLAB function from C++. The main idea is: firstly compile a MATLAB function and generate DLL file, and then include .h and .lib files in C++. Finally, write .cpp to test and call the function. Here's my detailed steps and please tell me where I'm wrong. (Using MATLAB 2012b and Visual C++ 2008, Windows 7 64-bit) In MATLAB: mbuild -setup and mex -setup to set Visual Microsoft Visual C++ 2008 SP1 as the compiler. Create MyAdd.m in folder C:\Users

Change the default JVM version in matlab

a 夏天 提交于 2019-12-25 06:12:54
问题 i am trying to change the default JVM from matlab but it didn't work. >> !java -version java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode) >> !/usr/libexec/java_home -V Matching Java Virtual Machines (3): 1.8.0_25, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home 1.6.0_65-b14-468, x86_64: "Java SE 6" /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 1.6.0_65-b14

Publising .Net MVC application with Matlab inside to the server

倾然丶 夕夏残阳落幕 提交于 2019-12-25 04:29:23
问题 In my ASP.Net mvc 5 application I use MWArray.dll and a matlab function that I generated .dll via Matlab's Library Compiler. Everything works fine on localhost, but on VDS I rented there is a problem The exception throwed with the message of "The type initializer for 'MathWorks.MATLAB.NET.Arrays.MWNumericArray' threw an exception." Inner exception is "The type initializer for 'MathWorks.MATLAB.NET.Utility.MWMCR' threw an exception." One more Inner Exception is "Unable to load DLL 'mclmcrrt9_0

simulink matlab standalone executable unable to get output

人盡茶涼 提交于 2019-12-24 10:49:59
问题 I have a M-script which takes the parameter values from user via a GUI and then simulates a simulink model with the updated parameter value. I want to convert it into a standalone exe file which can run without Matlab & Simulink (i.e. only with Matlab Runtime Compiler). I'm using MATLAB 2010b 32bit. My approach: As the Matlab compiler cannot convert the sim function, I first converted my Simulink model to an exe-file using the Rapid Simulation target and then called the exe file from my

Compiled Matlab function works only once

眉间皱痕 提交于 2019-12-24 03:11:02
问题 I have a Matlab function compiled into C library. I am using this library from C# application. If I call my function in C library for the first time, everything works fine, but the second call causes an exception - mlfMyfunc returns null pointer insted pointer to results (output1 and output2 parameters are IntPtr.Zero even after mlfMyfunc call) My DoubleArray class (wrapper around mx... functions), is well tested and I think it works correctly. Do you have any idea where problem could be?

Error: 'Subscript indices must either be real positive integers or logicals' when using Matlab .NET builder

旧街凉风 提交于 2019-12-23 19:25:40
问题 I am using matlab NE builder to compile a dll file which I call from C#. The matlab code is confirmed to work in matlab, but when called from c# the following error occurs: An unhandled exception of type 'System.Exception' occurred in MWArray.dll Additional information: ... MWMCR::EvaluateFunction error ... Subscript indices must either be real positive integers or logicals. Error in => KalmanFilter.m at line 108. The line in question is the following: plot(data(:, 1), data(:, 2)); I have