matlab-compiler

Matlab Java Interoperability

倖福魔咒の 提交于 2019-12-12 04:23:07
问题 Our web app acts as an integration layer which allows the users to run Matlab code (Matlab is a scientific programming language) which was compiled to Java, packaged up as jar files via browser (selected ones as in above image, except for remote_proxy-1.0.0.jar which is not, it is used for RMI). The problem is that, Matlab Java runtime, contained inside the javabuilder-1.0.0.jar file, has a process-wide blocking mechanism which means if the first user sends an HTTP request to execute the cdf

Python Package from Library Compiler: Matlab Runtime Error: Index exceeds matrix dimensions

落爺英雄遲暮 提交于 2019-12-11 18:29:37
问题 I have a function in Matlab. I created a python package from it to use in my python code. So far so good. When i call the function in python i received the message: MatlabRuntimeError: An error occurred when evaluating the result from a function. Details: File C:\Users\Roberto\AppData\Local\Temp\Guilherme\mcrCache9.0.1\classi4\classificado\contagemWGS84.m, line 59, in contagemWGS84 Index exceeds matrix dimensions. when i go to the line 59 of my code: plantas(1) = dados{1}(1); %line 59 plantas

Calling Matlab Compiler from inside C# app throws exception

点点圈 提交于 2019-12-11 13:53:11
问题 I found this code to invoke the Matlab compiler, it works fine when the function is called from Matlab command prompt, I build this function to .Net Assembly but whenever I try to use it in my C# app in order to build some .m file I get an exception, where do you think my problem is? Matlab Code: function compileCode(mfile,dllName , dnetdir) %% Create directories if needed if (exist(dnetdir, 'dir') ~= 7) mkdir(dnetdir); end %% Build .NET Assembly eval(['mcc -N -d ''' dnetdir ''' -W ''dotnet:'

error while compiling Matlab mex file on Ubuntu 11.04 with Matlab R2011a

风格不统一 提交于 2019-12-11 08:44:50
问题 I am trying to compile a shared library which will call MATLAB function on Ubuntu 11.04. Like the command: mcc - B cpplib:libStepCluster StepCluster.m Get the following error. /usr/lib/i38-linux-gnu/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2010a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /usr/lib/libppl_c.so.2) /usr/lib/i38-linux-gnu/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2010a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.11' not

“Out of memory” error for standalone matlab applications - memory fragmentation

时光怂恿深爱的人放手 提交于 2019-12-10 22:02:25
问题 I have to deliver an application as a standalone Matlab executable to a client. The code include a series of calls to a function that internally creates several cell arrays. My problem is that an out-of-memory error happens when the number of calls to this function increases in response to the increase in the user load. I guess this is low-level memory fragmentation as the workspace variables are independent from the number of loops. As mentioned here, quitting and restarting Matlab is 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

build a standalone application from Matlab code

孤者浪人 提交于 2019-12-05 16:39:06
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 a P-code file (from its .p file extension), and distribute your application code in this format. •

Calling MATLAB from C++ errors: unresolved external symbol

我怕爱的太早我们不能终老 提交于 2019-12-05 09:05:10
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\WangYudong\Documents\MATLAB\MyAdd_M and the function is like: function [c] = MyAdd(a, b) c = a + b; mcc -W

How can I update calculated data in my excel sheet in the next column each time I run my code in MATLAB?

半世苍凉 提交于 2019-12-02 09:17:48
问题 function []= process(f1, f2, f3, f4, height, th) %%omitted the the large code from in between in order to just propose the problem%% ValuesInInches(12)=t1*t; ValuesInInches(8)=realneck(f1,f2,height,th); ValuesInInches(14)=t3*t; ValuesInInches(7)=t4*t; ValuesInInches(11)= ValuesInInches(7); ValuesInInches(5)=t5*t; ValuesInInches(4)=t6*t; ValuesInInches(6)=t7*t; ValuesInInches(10)=t8*t; ValuesInInches(9)=t9*t; ValuesInInches(3)=t9*t1; ValuesInInches(1)=t*t10; ValuesInInches(2)=t11*t;

No command MCC found

北慕城南 提交于 2019-12-02 04:14:05
问题 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