CS 726 MATLAB Setup Available from course homepage: http://www.cs.wisc.edu/~swright/cs726.html (This is file ~cs726-1/public/MATLAB.setup on the CS Unix file system) To set up your account on a linux machine to use MATLAB, do the following: If logged in directly on a linux machine (e.g. emperor01 to emperor40) then: At the unix prompt, immediately after you login, do the following: emperor10> mkdir matlab emperor10> cp ~cs726-1/public/startup.m ~/matlab/startup.m emperor10> matlab & The last command should set up a separate window in which matlab should be running. MATLAB has a built in editor that you should use that mimics many of the standard windows key operations. It will enable you to create any `m' files that you need for your work. The function files that are created by the instructor can be found in the public directory: ~cs726-1/public are now available to you for use in MATLAB. For example the function file pdip.m implements an interior-point method for linear programming. If the start up time for MATLAB is too long for you, and you do not use the "Matlab desktop", then the following might be useful to you: emperor10> matlab -nojvm This disables the Java virtual machine, and the Matlab desktop will not start. Alternatively: emperor10> matlab -nodesktop This disables the Matlab desktop, and allows the JVM to start. For any homework assignments using Matlab you should hand in your results produced as follows: emperor10> matlab >> diary hwkYY.lastname.firstname >> load hwkYY >> .....whatever homework YY requires >> diary off >> exit emperor10> print -2up hwkYY.lastname.firstname Remote Unix Machine Users ------------------------- Suppose you are logged remotely on a machine called cheddar. On a cheddar window you do the following: cheddar> xhost +emperor10 In the emperor10 window on cheddar: emperor10> setenv DISPLAY cheddar:0 emperor10> matlab First-Time Users ---------------- Go to a Unix terminal that is a displaying a login window. Type in "newuser" without quotes next to login and hit return. Follow next instruction: [Type] UW Identification Number (10 digits) and subsequent instructions.