matlab-deployment

Can we create GUI in C# that will run the MATLAB code in back hand?

北城以北 提交于 2019-11-26 21:44:22
问题 I have designed the code in MATLAB and it's working fine. I was working in GUI in MATLAB but it's a headache for me. I think i can create GUI simply and effectively. Can we create GUI in C# that will also run the whole code of MATLAB that i have designed?? 回答1: Yes, this is possible. For details, take a look at: Calling a MATLAB function from C# Integrating MATLAB with C# MATLAB Compiler If you need a quick and dirty way to wrap MATLAB code with a C# GUI (e.g. WinForms), one option is to

What's the “right” way to organize GUI code?

删除回忆录丶 提交于 2019-11-26 17:57:14
问题 I'm working on a fairly sophisticated GUI program to be deployed with MATLAB Compiler. (There are good reasons MATLAB is being used to build this GUI, that is not the point of this question. I realize GUI-building is not a strong suit for this language.) There are quite a few ways to share data between functions in a GUI, or even pass data between GUIs within an application: setappdata/getappdata/_____appdata - associate arbitrary data to a handle guidata - typically used with GUIDE; "store[s

Running an .m file from a MATLAB-compiled function

落爺英雄遲暮 提交于 2019-11-26 17:25:05
问题 Background Say I compile the following simple function in MATLAB function foo(path_to_m_file) disp([' Running ' path_to_m_file]) run(path_to_m_file); end The function foo just takes a path to an .m file and tries to run it. However, when I actually try to run foo after compiling it: ./run_foo.sh $path_to_run_time $path_to_m_file where path_to_m_file is a simple .m file with a statement such as: a = 2; I get the following error: Error using ==> run MATLAB:run:FileNotFound However, I know that

How to call a user defined Matlab from Java using matlabcontrol.jar

不羁的心 提交于 2019-11-26 16:31:57
问题 I am trying to call a user defined Matlab Function(M file) which takes 3 arguments(Java Strings) from my Java application which is developed in Eclipse. At the moment I am able to call proxy.eval and proxy.feval methods with the functions/commands like disp or sqr . But when i try to invoke a user-defined function it says on the matlab console that there is no such function defined like that and on the Java console MatlabInvocationException occurs. Then I tried with a simple user-defined

MATLAB executable is too slow

主宰稳场 提交于 2019-11-26 16:27:11
问题 I converted my MATLAB program into a console-based application using the deploytool in MATLAB. The MATLAB .m file takes around 2 seconds to execute, but after I converted it into an executable and called the .exe , it takes 45 seconds to execute which is too long. I want to integrate the MATLAB program with PHP. Is there another efficient and fast way to do this? In my project, time is really a big factor (not the developing time but the execution time of the application). So is there a

Interoperating between Matlab and C#

北战南征 提交于 2019-11-26 11:08:44
问题 After peeking around the internet it looks like it is possible to interop between C# and Matlab. I am wondering if anyone has had success with it and what they did to do so. If possible somehow pulling it off without the use of COM. Thanks for your time. 回答1: Yes, quite possible. Though I ended up using the C interface and calling into that using a mixed-mode DLL (and getting C# to call into that... but that was because I was also interfacing with some other C code). It's quite

How to call MATLAB code from C?

為{幸葍}努か 提交于 2019-11-26 07:42:46
问题 I have some code that plots triangles in MATLAB. I need to be able to somehow execute this code from my C program which generates these points. Is that possible? How can it be done? Just a thought: Can I somehow embed MATLAB code in C, so that it can compile on a C compiler? 回答1: The Mathworks site has full details; a demo video of calling the Matlab engine from C, and also the Matlab to C Compiler. 回答2: As mentioned previously by answerers, you can call a live copy of MATLAB from C via the