matlab-engine

Thread safety of Matlab engine API

I have discovered through trial and error that the MATLAB engine function is not completely thread safe. Does anyone know the rules? Discovered through trial and error: On Windows, the connection to MATLAB is via COM, so the COM Apartment threading rules apply. All calls must occur in the same thread, but multiple connections can occ...

What is MATLAB? Does it generate executables?

What exactly is MATLAB/Simulink? I've tried to understand it but have only gotten more confused in the process. I know that you can write programs utilizing high-level industry-specific functions and algorithms but: Is it a runtime where you can 'build' your code into an exectable program for a Client/Server? Is it only a simulation e...

retrieve matlab result in java

Hi I use matlab in my project and I want to retrieve the result of matlab in java. Just I want the result. I want to retrive result of file that I make it in matlab in the java. I use this code but it give me the result in matlab windo and I want only to retrive the result in java only. this is the code public class matlab { priva...

Data streaming in MATLAB with input data coming in from a C++ executable

I'm completely new to MATLAB and I want to know what my options are for data streaming from a C++ file. I heard of using the MATLAB "engine" for this purpose, and some of the methods like engPutVariable, etc., but can someone give me a thorough example of how to go about doing it? I'm trying to implement streaming a sine wave, but a sim...

MATLAB engine versus libraries created by MATLAB Compiler?

To call MATLAB code in C or C++, how do you choose between using the MATLAB engine and using the MATLAB Compiler mcc to create C or C++ shared libraries from your MATLAB code? What are their pros and cons? For the second method, see http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/f2-9676.html Are there other ways to call ...

Is there a way to change the title of the MATLAB Command Window?

I'm using the C++ API to fire up MATLAB (via engOpenSingleUse). Everything's working fine. But I'd like to change the title of the window from "MATLAB Command Window" to something else. I often have 4 or 5 of them open, and occasionally one gets orphaned if my program crashes. If I could change the title, I'd have a better shot of kn...

Connect to Matlab engine from C in Linux

I'm trying to call the Matlab engine programatically from a C program on Linux (Matlab r2009a, Ubuntu 9.10). I've got my own code (which works in Windows), but for now I'm just trying to get the Matlab "engdemo.c" program to work on Linux. I have managed to compile & link it (after including about 15 -l<lib> switches on the gcc command ...

modem.oqpsk with half sine wave

hi i was using the following h = modem.oqpskmod; but it constructs it with default settings, i wanted to model zigbee one which is oqpsk with half sine waves... how could i do it? thanks a lot! ...

Engine Matlab issues

Hello, I am triyng to implement Matlab in a c++ program. http://www.cl.cam.ac.uk/~sjeh3/wii/ The application is using gtk a wii mote lib and the Matlab Camera Calibration Toolbox (http://www.vision.caltech.edu/bouguetj/calib_doc/ ). it works perfectly. I want to use matlab ploting tools to build a graphic provided by the application. B...

how to convert the spectrogram into an image

using MATLAB, we have converted image into audio (.wav format). Also this audio file is converted into spectrogram image. Now we are trying to convert this spectrogram into an original input image ...

Does opencv have a function similar to size and bwperim in matlab?

I am new to opencv and good at matlab i want to write equalent of below to opencv [mm,nn]=size(binaryimage); bwperim(binaryimage); Please can any one help ...

Can I debug Matlab Code started via Matlab engine?

Hi, I try to run and debug a script file from the matlab engine. Using breakpoints in my C++ program, I could open a Matlab editor and set a breakpoint in my script. When I continue the C++ program, the breakpoint gets hit, but Step through or similar commands do not work (as well as inspect variables or continue running). Is there any w...