Does SPM12 work on MATLAB version 2020b?

조회 수: 20 (최근 30일)
Alouki Shah
Alouki Shah 2020년 4월 4일
댓글: Lizhao Du 2021년 2월 4일
Does SPM12 work on MATLAB version 2020b?
I have tried to setpath and the spm still gives an error as "Unrecognized function or variable 'spm' "
  댓글 수: 3
Walter Roberson
Walter Roberson 2020년 10월 2일
I would expect that you would have to invoke spm12
Lizhao Du
Lizhao Du 2021년 2월 4일
I have tried SPM12 on MATLAB 2020a and it worked well.
However it did not work on 2020b
UI error, unrecognized function of variable 'spm_menu' etc.

댓글을 달려면 로그인하십시오.

답변 (1개)

Jack Foucher
Jack Foucher 2020년 9월 21일
Have similar problem when trying to run spm
I changed cell2mat and it worked...
you can try to copy-paste this :
best
JF
try
for i=1:size(C,1)
for j=1:size(C,2)
M(i,j) = C{i,j};
end;
end;
catch
assignin ('base','C',C);
if size(C) == [1 1]
M = C{1};
else
disp('cell2mat: A voir')
end
end
  댓글 수: 1
Marit Lobben
Marit Lobben 2020년 10월 2일
I copy-pasted the script above and MATLAB 2020b still returned Unrecognized function or variable 'C' to me. Were you able to open SPM12 in MATLAB 2020b yourself? In case, how?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by