Unrecognized function or variable n_subject

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

4 Comments

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
% $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
it appears to be a script that expects n_subjects to already have been assigned a value.

Sign in to comment.

Answers (0)

Categories

Asked:

on 22 Apr 2023

Moved:

on 14 May 2023

Community Treasure Hunt

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

Start Hunting!