Step 1. Download the file conn25b.zip to your target installation folder and unzip this file (file source: github.com/alfnie/conn/releases).
e.g. if you choose to download this file to ~/software/conn25b.zip (a software subdirectory within your user home directory), CONN will be unzipped to the folder ~/software/conn
Step 2. Download the file spm_25.01.02.zip to your target installation folder and unzip this file (file source: github.com/spm/spm/releases).
e.g. if you choose to download this file to ~/software/spm_25.01.02.zip, SPM will be unzipped to the folder ~/software/spm
Step 3. Start Matlab, and add those two folders to your Matlab path
option #1: in Matlab GUI click on the 'Set Path' button, and then click on 'Add Folder...', and select your CONN installation folder (e.g. ~/software/conn). After this, click again on 'Add Folder...' and now select the SPM installation folder (e.g. ~/software/spm). Click on 'Save' and 'Close' to save these changes for future Matlab sessions.
option #2: in Matlab command-window type the following commands (changing if necessary ~/software/spm and ~/software/conn to the location of your new SPM&CONN folders)
addpath ~/software/spm
addpath ~/software/conn
savepath
and you are done! After these installation steps, to start CONN simply type conn in Matlab command-window.
Notes & troubleshooting:
CONN release files for the latest (but also for all previous) versions are also available at NITRC: https://www.nitrc.org/frs/?group_id=279.
Advanced users and developers are encouraged to use git to clone CONN's repository and keep their local installation synchronized with the latest updates. See CONN's development for details.
When installing SPM/CONN on new Apple machines (with Apple chip M1/M2/M3) please make sure to install sufficiently modern versions of Matlab+CONN+SPM to ensure compatibility (Matlab R2023b, CONN v2024, and SPM 25 or above)
Installation errors may arise as a result of other toolboxes shadowing/overloading basic SPM functionality. To avoid these issues simply make sure that both CONN and SPM are the folders placed at the top of Matlab's path list (see example image)
What you need first
Matlab: Matlab is a high-performance programming language and interactive computing platform for engineering and scientific applications. Universities will often offer free access to Matlab to students and researchers. See the following link if you need to download a trial version or purchase a personal Matlab license: https://www.mathworks.com/downloads/ (note: only Matlab base is necessary to use CONN&SPM, no other toolboxes are needed).
If you prefer to use CONN without the need of using or purchasing any Matlab license, we also distribute pre-compiled versions of CONN as a standalone application. See the section below for instructions on how to download and install CONN's standalone releases on Mac, Windows, or Linux platforms.
Pre-compiled standalone releases are meant for those environments without access to Matlab licenses. One very common scenario, for example, is in cluster environments without Total-Academic-Headcount or equivalent licensing agreements, where users taking advantage of CONN parallelization options may quickly deplete the pool of available Matlab licenses. Standalone releases provide access to all of the functionality of CONN Matlab release encapsulated in a single application (while only missing some of the added flexibility and speed that the Matlab environment provides)