Launching Matlab GUIs from C++
Launching Matlab GUIs from C++
(OP)
I apologize if this is a dumb question, I'm an admitted Matlab newbie.
I have an m-file which has a Matlab GUI I set up in GUIDE. It has a graph and some buttons, it's working the way I want it to. What I need to do, though, is to launch and initialize it from a C++ object, which will then update it every time the C++ object gets an update message.
I did compile my GUI m-file into the C version, but I can't seem to figure out how to get it to start up and initialize.
I've tried everything I can think of, and I can't seem to find a demo of doing something like this (I did find the Engine demo which was neat... but it doesn't launch a GUI, just a graph. I'm doing some special things in my GUI that I want to be able to use).
So, in short, how do I launch a compiled Matlab GUI from a C++ program?
Thanks!
-fel
I have an m-file which has a Matlab GUI I set up in GUIDE. It has a graph and some buttons, it's working the way I want it to. What I need to do, though, is to launch and initialize it from a C++ object, which will then update it every time the C++ object gets an update message.
I did compile my GUI m-file into the C version, but I can't seem to figure out how to get it to start up and initialize.
I've tried everything I can think of, and I can't seem to find a demo of doing something like this (I did find the Engine demo which was neat... but it doesn't launch a GUI, just a graph. I'm doing some special things in my GUI that I want to be able to use).
So, in short, how do I launch a compiled Matlab GUI from a C++ program?
Thanks!
-fel





RE: Launching Matlab GUIs from C++
for Visual C++.
Then in your C/C++ projects,you can initial the dll and call it.
But, as far as i know,this method does not work in any case, it just suit for some special case.
You must pay more attention to the calling formats , callback funtions and parameters transportation!
RE: Launching Matlab GUIs from C++
I,m attempting to try the exact same thing. I was wondering if you had any luck with it since you posted this message. What engine demo are you talking about? Where may I find it. Cheers.
R.K.