spm_jobman strcmp error question

11 visualizaciones (últimos 30 días)
Pelin Ayyildiz
Pelin Ayyildiz el 7 de En. de 2020
Respondida: Ananya Kapoor el 15 de Feb. de 2022
I am writing a code for an fMRI experiment, but the script is not running. It gives me an error at line 241 for spm_jobman saying;
Error using strcmp
Inputs must be the same size or either one can be a scalar.
Error in spm_jobman>canonicalise_jobs (line 405)
comp(i) = comp(i) && any(strcmp(fieldnames(job{i}{j}), ...
Error in spm_jobman (line 153)
mljob = canonicalise_jobs(jobs);
Otherwise, the script works fine for previous lines. I attached the .m file to this post. I've been stuck with this problem for 2 months, any help is appreciated! Thanks!first

Respuestas (1)

Ananya Kapoor
Ananya Kapoor el 15 de Feb. de 2022
For anyone else who also runs into this issue -- I added
clear matlabbatch
to my job file and my script worked.

Categorías

Más información sobre Neuroimaging en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by