Tips on how to run background program 

Method 1:-

After you run a *.m file successfully in foreground, you can run it as a background task by typing matlab < *.m > /dev/null & in the directory that contains the *.m file.

In your *.m file, use "save *.mat " to save the result, and an "exit" command at the ending part of you *.m file to make sure that the program terminate after finishing, otherwise, it will occupy a license.

You can "top" to check the process.

 

Method 2:-

1. telnet to the workstation

2. type "nohup matlab"

3. run the simulation, but make sure there is a "save ..." line in the file

4. Close the telnet client

Once the simulation is completed, the process will terminate by itself and the .mat file will appear in the directory.