Unrecognized function or variable n_subject

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

4 commentaires

Suphakson
Suphakson le 22 Avr 2023
Déplacé(e) : Stephen23 le 14 Mai 2023
Walter Roberson
Walter Roberson le 22 Avr 2023
Déplacé(e) : Stephen23 le 14 Mai 2023
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 le 22 Avr 2023
Déplacé(e) : Stephen23 le 14 Mai 2023
% $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 le 22 Avr 2023
Déplacé(e) : Stephen23 le 14 Mai 2023
it appears to be a script that expects n_subjects to already have been assigned a value.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Question posée :

le 22 Avr 2023

Déplacé(e) :

le 14 Mai 2023

Community Treasure Hunt

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

Start Hunting!

Translated by