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 件のコメント

Ale804
Ale804 2019 年 8 月 5 日
編集済み: Ale804 2019 年 8 月 5 日
I found this helpful (you have to add ALL subfolders - which none fo the install guides mention..
소연 이
소연 이 2020 年 11 月 10 日
you saved my life thanks

サインインしてコメントする。

回答 (3 件)

Lewis
Lewis 2021 年 2 月 9 日
編集済み: Lewis 2021 年 2 月 9 日

3 投票

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.

2 件のコメント

Farhia Shafira
Farhia Shafira 2021 年 9 月 17 日
thank you!
Muhammad Ahabb
Muhammad Ahabb 2024 年 4 月 25 日
thx!!!

サインインしてコメントする。

Akshay Khadse
Akshay Khadse 2018 年 12 月 26 日

2 投票

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 件のコメント

Smriti Chaudhury
Smriti Chaudhury 2020 年 6 月 2 日
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 2020 年 7 月 21 日
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 2020 年 8 月 19 日
I am facing the same problem. Could anyone fix it?
Narin Deveci
Narin Deveci 2020 年 11 月 15 日
I am having the same problem too :(
Thomas Rust
Thomas Rust 2021 年 1 月 29 日
I am also having the same problem

サインインしてコメントする。

Abdulrahman Alduraywish
Abdulrahman Alduraywish 2021 年 2 月 4 日

0 投票

1 件のコメント

Rik
Rik 2021 年 2 月 5 日
Please replace the link by the actual instructions.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Matrices and Arrays についてさらに検索

タグ

質問済み:

2018 年 12 月 13 日

コメント済み:

2024 年 4 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by