QT process for matlab
-
hi I want to use simple QT process class to run matlab... but it is not working
@bool MainWindow::start()
{
proc.start("matlab.exe");
return proc.waitForStarted();}
void MainWindow::write()
{
QByteArray script = "clear;\n"
"x = [10 20 20];\n"
"y = sin(x);\n"
"y\n";proc.write(script);
}@
when I run matlab opens but can not write ...
-
Hi,
What error are you getting from QProcess ?
On a side note, It's Qt, QT stands for Apple QuickTime
-
Did you check what QProcess::error() returns ?