CSPM and Other Files
Make sure you have the latest files on your computer.
FreeFileSync
Use FreeFileSync to copy files from Google Drive (in the cloud) to your local MATLAB folder (usually “C:\matlab”). It's best to have two profiles:
CSPM - only files in CSPM (saves time when only CSPM files have been updated)
matlab - all files in SPM12 and other MATLAB programs (used when more than CSPM is updated)
Setup (new as of August 2022)
Summary: Install FreeFileSync, add shared folder in your Google Drive, create the two profiles in FreeFileSync.
Install FreeFileSync
This is free software; it will ask for a donation to avoid the banner each time the software is run.
It’s simplest to create a Taskbar shortcut (download, install, search for “freefilesync” from Start menu, right-click Add to Taskbar”)
Add shared folder to your Google Drive
Ask Paul to share the UCLA Google Drive matlab folder with your Google account. Add that folder with the following steps:
In a browser, go to your Google Drive
Shared with me
Right-click over the shared folder “matlab2share”
Add shortcut to Drive
Select “My Drive” or a subfolder
ADD SHORTCUT
This shared folder will now show up under “My Drive” (or a subfolder if you selected that).
Create profiles
Create an “Update” profile from the cloud (left) to the local folder (right)
See video; in short: click on cloud icon, Add connection to your Google Account, select matlab2share (or mat;ab2share\spm12\toolbox\CSPM for CSPM profile), on right click “Browse” to select local folder; save profile.
Running a profile
If you get a conflict, you can right-click and force the copy (use the direction arrows, select the one from left to right).
Direct link to Google Drive
This link takes you to Google Drive (matlab folder) in a browser (CSPM folder here), where all the files are available for download; as of Aug 2022, you need to have permission for your Google Account to access this folder. The browser interface works best if you sign in to your account; you should be able to download a compressed folder with everything (or one file at a time). Uncompress then copy to C:\matlab.
The CSPM files need the matlab => spm12 folder, which contains SPM12, toolboxes (like SUIT), and CSPM (in matlab => spm12 => toolbox => CSPM).