any variable has the path where SPM(from UCL) installed?

6 次查看(过去 30 天)
I have to find out if there is proper variable, which contains the installation path of the SPM.
I had installed SPM (from UCL) in my computers.
I do many repeating works with "job" files, made from "Batch Editor".
I'm working at two PCs, writing files on same path on NAS.
because those two PC has different user-id... installation path should be different.
but, in the JOB file, I have to specify the files from SPM path...
one job file must be run from two computers.
so, if there is something like environment string variable for "SPM installation path"...
I can use it samely in the job file for diff two PCs.

回答(1 个)

Vinayak
Vinayak 2023-8-29
Hi,
You can find the installation instructions on the following SPM Wiki Page:
You will need to follow these steps to get SPM working:
1) Unzip spm12.zip in a folder of your choice, such as C:\Users\login\Documents\MATLAB\spm12).
2) Start MATLAB and add SPM into your path, either using File > Set Path > Add Folder... or typing the following in the MATLAB Command window:
>> addpath C:\Users\login\Documents\MATLAB\spm12
3) Launch SPM by using the command
>> spm
Thanks,
Vinayak

类别

Help CenterFile Exchange 中查找有关 Manage Products 的更多信息

产品


版本

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by