- #1
GreenLRan
- 61
- 0
Hi,
I need to call the system function to open up several other MATLAB terminals and call a function I wrote that will have variable input. I have tried a lot of different methods but to no avail. This is basically what I'm trying to do.
for i = 1:numberOfTerminals
system('C:\MATLAB\R2009b\bin\matlab -r myFunction(var1*i,var2)')
end
I get errors saying the variables are undefined.
I have tried
...
system(['C:\MATLAB\R2009b\bin\matlab -r myFunction(', var1*i, var2, ')' ]);
and
system(['C:\MATLAB\R2009b\bin\matlab -r myFunction(%var1*i%,%var2%)' ]);
etc...
Thanks for the help!
I need to call the system function to open up several other MATLAB terminals and call a function I wrote that will have variable input. I have tried a lot of different methods but to no avail. This is basically what I'm trying to do.
for i = 1:numberOfTerminals
system('C:\MATLAB\R2009b\bin\matlab -r myFunction(var1*i,var2)')
end
I get errors saying the variables are undefined.
I have tried
...
system(['C:\MATLAB\R2009b\bin\matlab -r myFunction(', var1*i, var2, ')' ]);
and
system(['C:\MATLAB\R2009b\bin\matlab -r myFunction(%var1*i%,%var2%)' ]);
etc...
Thanks for the help!