Writer : Atma Kanojia Date: 09/13/04 The following commands I came accross to make standalone application from LHCOSY_Matlab.m file: to setup: mbuild -setup to create stand alone: mcc -m LHCOSY_Matlab.m Troubles: 1. Caused by the "which" function. Apparently it is supported by MEX files only. Cannot be used for standalone app. 2. Caused by "tic" and "toc" functions. Not supported by Matlab Compiler 3.0 3. Caused by "eval" function. Not supported by Compiler 3.0 4. Used LD_LIBRARY_PATH from Matlab i.e. typed !echo $LD_LIBRARY_PATH on the command line and used the result in the runMatlabFile. Modified the code to get rid of the eval function (no more for loops for writing to MDSPlus). Changed the "disp" functions by getting rid of "tic" and "toc" functions. Validated the data written into the LH tree by comapring with the data (LUT_RT) written by LHCOSY_Matlab.m under two conditions: With/without interpolation. Created a shell script which intially sets the library path and then calls the standalone application. The script file is callled runMatlabFile and its content is: #!/bin/bash export LD_LIBRARY_PATH=/usr/lib/globus/lib:/usr/local/matlab/sys/os/glnx86:/usr/local/matlab/bin/glnx86: /usr/local/matlab/extern/lib/glnx86:/usr/local/matlab/sys/java/jre/glnx86/jre/lib/i386/native_threads: /usr/local/matlab/sys/java/jre/glnx86/jre/lib/i386/hotspot:/usr/local/matlab/sys/java/jre/glnx86/jre/lib/i386: /usr/local/mdsplus/lib:/usr/lib:/usr/local/matlab/sys/opengl/lib/glnx86${LD_LIBRARY_PATH} ./LHCOSY_Matlab The above lines are actually 3 lines: 1. #!/bi.... 2. export LD_... 3. ./LHCO....