Run MATLAB twice at the same time

3 views (last 30 days)
Hayder Makhzom
Hayder Makhzom on 25 Jan 2022
Commented: Hayder Makhzom on 27 Jan 2022
I have to collect data by Simulink file and I need many times to run MATLAB code. So, my question is;
Can I run MATLAB twice at the same time for the same code?
If yes, Are there any differences in the data obtained?
Thank you in advance.

Accepted Answer

Rik
Rik on 25 Jan 2022
You mean you want to have two separate instances of Matlab running? That is possible. Running the same function is also not a problem.
However, if your function is setting up a connection with a physical device, there may be a problem. Some devices will only allow a single connection.
If it does accept two connections, the only difference in the data will be the time difference in starting the function.
  1 Comment
Hayder Makhzom
Hayder Makhzom on 27 Jan 2022
Thank you very much Rik, for your kind answer, really I am grateful to you.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!