MATLAB Answers

Matlab program crashing while trying to run in background (by adding &)

4 views (last 30 days)
Sajan Mushini
Sajan Mushini on 15 Feb 2019
Answered: Sajan Mushini on 19 Feb 2019
hi all
a new user here. version: 2018b .OS: red hat Linux
i am trying to run a marlab program in background.
matlab -nodesktop -nosplash <script> output.txt &
it crashes but when i remove "&" it works fine.
any suggestions appreciated.

  1 Comment

Walter Roberson
Walter Roberson on 15 Feb 2019
is there an error message ?
did you try redirecting stderr as well ?

Sign in to comment.

Answers (1)

Sajan Mushini
Sajan Mushini on 19 Feb 2019
Yes, it was complaining about missing "END" statement. GUI version was able to run the same code. I commented out 'fclose all' in my code and it worked. Thanks for the prompt reply.

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by