From: Ioannis Botonakis on
Hallo everybody,

is it possible to control an external program from MATLAB? For example I want to be able to say in MATLAB (psedocode):

- open programX
- open documentY.yyy within programX
- convert documentY.yyy to documentY.mat within programX
- save documentY.mat in pathZ again within programX (something like "save as")
- close programX

Would it be possible to do? Are there any commands for that?

Thanks a lot in advance!

Sincerely
Yannis
From: us on
"Ioannis Botonakis" <i.botonakis_withoutthis_(a)googlemail.com> wrote in message <hoaiso$spe$1(a)fred.mathworks.com>...
> Hallo everybody,
>
> is it possible to control an external program from MATLAB? For example I want to be able to say in MATLAB (psedocode):
>
> - open programX
> - open documentY.yyy within programX
> - convert documentY.yyy to documentY.mat within programX
> - save documentY.mat in pathZ again within programX (something like "save as")
> - close programX
>
> Would it be possible to do? Are there any commands for that?
>
> Thanks a lot in advance!
>
> Sincerely
> Yannis

a hint:
- depending on your OS and program

help actxcontrol;

us
From: Walter Roberson on
Ioannis Botonakis wrote:

> is it possible to control an external program from MATLAB? For example I
> want to be able to say in MATLAB (psedocode):
>
> - open programX
> - open documentY.yyy within programX - convert documentY.yyy to
> documentY.mat within programX
> - save documentY.mat in pathZ again within programX (something like
> "save as")
> - close programX
>
> Would it be possible to do? Are there any commands for that?

In addition to the possibility of active x that was mentioned, there is
more generally the Java robot class.
From: Ioannis Botonakis on
"us " <us(a)neurol.unizh.ch> wrote in message <hoal42$9h3$1(a)fred.mathworks.com>...
> "Ioannis Botonakis" <i.botonakis_withoutthis_(a)googlemail.com> wrote in message <hoaiso$spe$1(a)fred.mathworks.com>...
> > Hallo everybody,
> >
> > is it possible to control an external program from MATLAB? For example I want to be able to say in MATLAB (psedocode):
> >
> > - open programX
> > - open documentY.yyy within programX
> > - convert documentY.yyy to documentY.mat within programX
> > - save documentY.mat in pathZ again within programX (something like "save as")
> > - close programX
> >
> > Would it be possible to do? Are there any commands for that?
> >
> > Thanks a lot in advance!
> >
> > Sincerely
> > Yannis
>
> a hint:
> - depending on your OS and program
>
> help actxcontrol;
>
> us

thanks for the reply. I'm using windows vista 64bit (I know I know..) and matlab 2009b. the program is "diadem 10.1". I don't know if that plays a role. I will look into your sugestion and get back to you.

Sincerely
Yannis
From: Ioannis Botonakis on
Walter Roberson <roberson(a)hushmail.com> wrote in message <hoankj$rlt$2(a)canopus.cc.umanitoba.ca>...
> Ioannis Botonakis wrote:
>
> > is it possible to control an external program from MATLAB? For example I
> > want to be able to say in MATLAB (psedocode):
> >
> > - open programX
> > - open documentY.yyy within programX - convert documentY.yyy to
> > documentY.mat within programX
> > - save documentY.mat in pathZ again within programX (something like
> > "save as")
> > - close programX
> >
> > Would it be possible to do? Are there any commands for that?
>
> In addition to the possibility of active x that was mentioned, there is
> more generally the Java robot class.

thanks a lot for the information. But I have no idea what is a Java robot class.? Can you please say a little more?

Sincerely
Yannis