ISINTERACTIVE tell if graphical desktop is being used

'matlab -nodesktop' mode outputs false.