Unrecognized function or variable n_subject

Why do I get this message and how to fix it? Thank you for your kind answers!

댓글 수: 4

Suphakson
Suphakson 2023년 4월 22일
이동: Stephen23 2023년 5월 14일
Walter Roberson
Walter Roberson 2023년 4월 22일
이동: Stephen23 2023년 5월 14일
We would need the lines before that in cat_run.m
We might also need to see the line of code that is invoking cat_run
Suphakson
Suphakson 2023년 4월 22일
이동: Stephen23 2023년 5월 14일
% $Id: cat_run.m 1984 2022-04-19 07:59:02Z gaser $
%#ok<*AGROW,*STRIFCND,*STRCL1,*ASGLU,*STREMP>
%rev = '$Rev: 1984 $';
% -----------------------------------------------------------------
% Lazy processing (expert feature)
% -----------------------------------------------------------------
% If N>10000 files were processed the crash of one of J jobs by
% small errors makes it hard to find the unprocess files.
% The lazy processing will only process files, if one of the output
% is missed and if the same preprocessing options were used before.
% -----------------------------------------------------------------
% disable parallel processing for only one subject
if n_subjects == 1, JOB.nproc = 0; end %#ok<STRNU,NODEF>
%{ send Matlab version to server
if cat_get_defaults('extopts.send_info')
urlinfo = sprintf('%s%s%s%s%s%s%d',cat_version,'%2F',computer,'%2F','processed',...
'%2F',n_subjects);
cat_io_send_to_server(urlinfo);
end
Walter Roberson
Walter Roberson 2023년 4월 22일
이동: Stephen23 2023년 5월 14일
it appears to be a script that expects n_subjects to already have been assigned a value.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2023년 4월 22일

이동:

2023년 5월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by