I have downloaded spm 12,(files from UCL) but I cant use it in matlab.
I dont know what to do and I have tried several times and no use. Could you please give me instructions on how to use SPM to carry out my analysis

2 Kommentare

Ale804
Ale804 am 5 Aug. 2019
Bearbeitet: Ale804 am 5 Aug. 2019
I found this helpful (you have to add ALL subfolders - which none fo the install guides mention..
소연 이
소연 이 am 10 Nov. 2020
you saved my life thanks

Melden Sie sich an, um zu kommentieren.

Antworten (3)

Lewis
Lewis am 9 Feb. 2021
Bearbeitet: Lewis am 9 Feb. 2021

3 Stimmen

If you are on windows and "right-click/Extract All...", then it creates a nested directory which means MATLAB doesn't recognise spm12. For example if you want spm to be in C:/Users/You/Documents/MATLAB, after extracting it you will end up with C:/Users/You/Documents/MATLAB/spm12/spm12/... . If you add the first spm to the path it won't work. You have to cut the spm12 sub-folder out into the parent path so that it looks like this: C:/Users/You/Documents/MATLAB/spm12/... . Or just add the spm12 sub-folder.
Akshay Khadse
Akshay Khadse am 26 Dez. 2018

2 Stimmen

I found 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
However, please note that the SPM Wiki page has been marked as outdated. You might need to figure out some additional steps to get this working.

5 Kommentare

Smriti Chaudhury
Smriti Chaudhury am 2 Jun. 2020
When I'm trying to do it on online version, i am getting an error which says, 'unrecognized function or variable spm' even after setting the path. Where did i go wrong?
Hilary Dagg
Hilary Dagg am 21 Jul. 2020
I am having the same problem, followed the steps on the Wiki exactly yet still coming up as "unrecognizd function" when I type in spm to open it.
Pragya Verma
Pragya Verma am 19 Aug. 2020
I am facing the same problem. Could anyone fix it?
Narin Deveci
Narin Deveci am 15 Nov. 2020
I am having the same problem too :(
Thomas Rust
Thomas Rust am 29 Jan. 2021
I am also having the same problem

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Matrices and Arrays finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 13 Dez. 2018

Kommentiert:

am 25 Apr. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by