CS 525 Linear Programming MATLAB Setup Available from course homepage: http://www.cs.wisc.edu/~cs525-1 (This is file ~cs525-1/public/MATLAB.setup) Most of the assignments for this course will be carried out with the aid of MATLAB, an interactive package for high performance scientific computing. To set up your account on a Unix machine to use MATLAB, the following should be carried out. If logged in directly on an emperor machine then: At the unix prompt, immediately after you login, do the following: emperor10> cp ~/.cshrc.local ~/.cshrc.local.bak emperor10> cp ~cs525-1/public/.cshrc.local ~/. emperor10> mkdir matlab emperor10> cp ~cs525-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. All the function files that are created by the instructor as well as the homework and project data files in the public directory: ~cs525-1/public are now available to you for use in MATLAB. For example the function file ljx.m performs a labeled Jordan exchange within MATLAB and its use is described in the text. 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 most homework assignments, the main output to be handed in is a diary file. Any diary files should be produced as follows (where login refers to your login name): emperor10> matlab >> diary hwk1.login >> load hwk1 >> .....whatever homework 1 requires >> diary off The required output to be handed in will be listed on the assigment. To print, move to the directory containing the relevant file and emperor10> print -2up hwk1.login 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.cs.wisc.edu In the emperor10 window on cheddar: emperor10> setenv DISPLAY cheddar:0 emperor10> matlab First-Time Users ---------------- Go to a Unix terminal 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.