Hi,

I am trying to invoke matlab using the QProcess class, however, it is not working.
Each time matlab is invoked, it flashes for a second and dissapears. There are no such
issues while invoking other processes such as emacs, Firefox etc.
Please help.
Thanks.

int main(int argc, char *argv[]) {

QApplication app(argc, argv);
QStringList argo, list;
QProcess exec;
argo<<"-nojvm -nosplash -r 'addmatrix(2,7)'";
exec.start("matlab", argo);
return app.exec();
}