Added "-nodesktop" to Matlab startup option
1) Removed startup option in Magic to use default options. 2)Explicitly set "maxtime=10" Matlab magic is working now!