<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>MatLab</title><revhistory><revision><revnumber>1</revnumber><date>2016-02-16 22:02:27</date><authorinitials>PeterKacin</authorinitials></revision></revhistory></articleinfo><para>If you have license problem when using Matlab on madmax machines or you get message like this when you try to use it:  </para><screen><![CDATA[ERROR: Matlab doesn't seem to be licensed for this host. If you feel this is
       in error, contact action@cs with the following information:
]]><![CDATA[
         Hostname: madmax2.stanford.edu
   Client Address: 172.24.75]]></screen><para>Check which command you actually use: </para><screen><![CDATA[$which matlab]]></screen><para>If output is &quot;/afs/cs/software/bin/matlab&quot;, consider using local instance that should be available at /usr/local/MATLAB/R2012b/bin/matlab </para><para>You can also put the folder to your $PATH variable by adding </para><screen><![CDATA[export PATH=/usr/local/MATLAB/R2012b/bin:$PATH ]]></screen><para> to file .bashrc.user in your home directory.  </para><para>If file doesn't exist, you can just create it.  </para><para>When you next time log in to the system, it should automatically use /usr/local/MATLAB/R2012b/bin/matlab when you type matlab command. </para></article>