Please use the following instructions to run the standalone CAT12 version via the GUI. 
For calling CAT12 tools via the shell, the scripts in the standalone folder can be used. 
Access the help for standalone/cat_standalone.sh to learn how to call the prebuilt scripts. 
The standalone/cat_parallelize.sh script can be used to distribute jobs or batches to 
different nodes/processors on your system.

For a quick start:
1. Open the MCR_v232.webloc link in this folder, which downloads the MATLAB Runtime for R2023b.
2. Install the Matlab Runtime preferably in this folder and rename it to "v232". 
3. Use spm12.sh for calling the GUI version
   or standalone/cat_standalone.sh for calling via shell script

If you have installed the Matlab Runtime somewhere else call run_spm12.sh <mcr_directory> 
at command prompt. <mcr_directory> is the directory where the MATLAB 
Runtime is installed or the directory where MATLAB is installed on the machine. 

NOTE: You will need administrator rights to run the MATLAB Runtime installer. 

---------------------------------------------------------------------------------

spm12 Executable

1. Prerequisites for Deployment 

Verify that version 23.2 (R2023b) of the MATLAB Runtime is installed.   

If the MATLAB Runtime is not installed, you can run the MATLAB Runtime installer.
To find its location, enter
  
    mcrinstaller
      
at the MATLAB prompt.

Alternatively, download and install the Macintosh version of the MATLAB Runtime for R2023b 
from the following link on the MathWorks website:

    http://www.mathworks.com/products/compiler/mcr/index.html
   
Or simply use the MCR_v232.webloc link in this folder.

For more information about the MATLAB Runtime and the MATLAB Runtime installer, see 
Package and Distribute in the MATLAB Compiler documentation  
in the MathWorks Documentation Center.    

NOTE: You will need administrator rights to run the MATLAB Runtime installer. 


2. Files to Deploy and Package

Files to Package for Standalone 
================================
-run_spm12.sh (shell script for temporarily setting environment variables and executing 
               the application)
   -to run the shell script, type
   
       ./run_spm12.sh <mcr_directory> <argument_list>
       
    at Linux or Mac command prompt. <mcr_directory> is the directory 
    where version 23.2 of the MATLAB Runtime is installed or the directory where 
    MATLAB is installed on the machine. <argument_list> is all the 
    arguments you want to pass to your application. For example, 
    if you have version 23.2 of the MATLAB Runtime installed in 
    /mathworks/home/application/v232, run the shell script as:
    
       ./run_spm12.sh /mathworks/home/application/v232
       
    If you have MATLAB installed in /mathworks/devel/application/matlab, 
    run the shell script as:
    
       ./run_spm12.sh /mathworks/devel/application/matlab
-MCRInstaller.zip 
    Note: if end users are unable to download the MATLAB Runtime using the
    instructions in the previous section, include it when building your 
    component by clicking the "Runtime downloaded from web" link in the
    Deployment Tool.
-The Macintosh bundle directory structure spm12.app 
    Note: this can be stored in an archive file with the zip command 
    zip -r spm12.zip spm12.app
    or the tar command 
    tar -cvf spm12.tar spm12.app
-This readme file 

3. Definitions

For information on deployment terminology, go to
http://www.mathworks.com/help and select MATLAB Compiler >
Getting Started > About Application Deployment >
Deployment Product Terms in the MathWorks Documentation
Center.

4. Appendix 

A. Mac systems:
In the following directions, replace MR by the directory where MATLAB or the MATLAB 
   Runtime is installed on the target machine.

If the environment variable DYLD_LIBRARY_PATH is undefined, set it to the following 
   string:

MR/v232/runtime/maci64:MR/v232/sys/os/maci64:MR/v232/bin/maci64

If it is defined, set it to the following:

${DYLD_LIBRARY_PATH}:MR/v232/runtime/maci64:MR/v232/sys/os/maci64:MR/v232/bin/maci64

    For more detailed information about setting the MATLAB Runtime paths, see Package and 
   Distribute in the MATLAB Compiler documentation in the MathWorks Documentation Center.


     
        NOTE: To make these changes persistent after logout on Linux 
              or Mac machines, modify the .cshrc file to include this  
              setenv command.
        NOTE: The environment variable syntax utilizes forward 
              slashes (/), delimited by colons (:).  
        NOTE: When deploying standalone applications, you can
              run the shell script file run_spm12.sh 
              instead of setting environment variables. See 
              section 2 "Files to Deploy and Package".    



5. Launching application using Macintosh finder

If the application is purely graphical, that is, it doesn't read from standard in or 
write to standard out or standard error, it may be launched in the finder just like any 
other Macintosh application.



