How can I fix the "Failed Factorial design specification" ?
이전 댓글 표시
Dear all,
I am trying to conduct a two-way ANOVA analysis of task fMRI using SPM12 and MATLAB software version R2020a and facing a problem.
Failed 'Factorial design specification'
Error using save
Found characters the default encoding is unable to represent.
In file "/Users/haiti/Documents/MATLAB/spm12/config/spm_run_factorial_design.m" (v7739), function "spm_run_factorial_design" at line 1062.
=> line 1062: save('SPM.mat', 'SPM', fmt);
What would you recommend to fix it ?
Thank you very much for your time and consideration, highly appreciated!
Sincerely,
Haiti
댓글 수: 3
Jules
2022년 10월 17일
Hey Hai-Ti,
TL;DR: I switch back from MATLAB2022a to MATLAB2018b to avoid the error.
Long response :
have you found a solution?
I just run in the same problem but I could not find any response on this issue...
I have tried to manually edit the SPM code to switch
save('SPM.mat', 'SPM', fmt);
to
save('SPM.mat', 'SPM');
I had to do it in several places (in four or five files so far) and It seems to remove the error message ... I just hope it will not affect the SPM processing...
edit: and unfortunelty it does affect and block the normal SPM processing. Saving files seems fine but eventually spm12 use some compiled non-MATLAB file that I couldn't track and adjust to solve the issue ...
So I revert my matlab to an older version to make everything run as it uses too.
Esteban
2023년 3월 3일
이동: Walter Roberson
2025년 9월 23일
Hi, all
I have this problem. How did you solve it? It is taking me a lot time trying solve it.
Thanks a lot!
Best regards,
Esteban
Esteban
2023년 3월 3일
Hi!!
Finally, you get solve it?
답변 (3개)
Kseniia
2023년 5월 11일
0 개 추천
Hi!
If your main language is not English try to check if there are any non-latin characters in pathes where your contrasts or any other loaded files are stored.
Final SPM.mat store all full pathes inside and it could be the place your "characters the default encoding is unable to represent" are.
P.S. I had the same problem and changing all names to latin alphabet helped me.
Bényei Gábor
2023년 9월 26일
0 개 추천
There is solution!
Install a bit older version of Matlab, e.g. 2019a, it will allow saving. (Worked for me)
Guo
2025년 9월 23일
0 개 추천
I had the same issue. The problem was that the folder names contained a special character, so I had to rename them and restart the process.
You can try using a smaller dataset to test this.
카테고리
도움말 센터 및 File Exchange에서 Image Segmentation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!