help > Error in generating the figure box with art repair in SPM12
Showing 1-4 of 4 posts
Display:
Results per page:
Oct 1, 2018  10:10 PM | avantika mathur - UNL
Error in generating the figure box with art repair in SPM12
i am getting following error when I run Art repair using SPM12. The first three graphs get generated, however, the legend box and fourth graph do not come up [Please check the attachment]. Why is this happening and how should I troubleshoot this? I am using MATLAB_R2017a. 

Generated mask image is written to file ArtifactMask.img.
Adaptive Mask Threshold
1757

Mapping files...: ...done
Calculating globals...: ...done\n
79088 voxels were in the auto generated mask.
Automatic adjustment of movement threshold to 1

Error using legend>process_inputs (line 582)
Invalid argument. Type 'help legend' for more information.
Error in legend>make_legend (line 340)
[autoupdate,orient,location,position,children,listen,strings,propargs] = process_inputs(ha,argin); %#ok
Error in legend (line 294)
make_legend(ha,args(arg:end),version);
Error in art_global (line 432)
legend('x mvmt', 'y mvmt', 'z mvmt','pitch','roll','yaw',0);
Error while evaluating UIControl Callback.
Jan 24, 2019  10:01 AM | Sandra Martin
RE: Error in generating the figure box with art repair in SPM12
Hi Avantika,

I am dealing with the same error message. Did you ever get to solve it and if so how?

Thanks a lot and best
Sandra
Apr 5, 2019  07:04 AM | Marina Fernandez Alvarez - UPO
RE: Error in generating the figure box with art repair in SPM12
Hi Avantika and Sandra,

I had the same problem. You should try with a previous version of Matlab. I am completely sure that it works with Matlab R2013a and SPM12. I think that ArtRepair also works with Matlab 2015 .

Best regards, 
Marina.
May 4, 2019  01:05 PM | Petya Kozhuharova
RE: Error in generating the figure box with art repair in SPM12
   
Originally posted by Sandra Martin:
Hi Avantika,

I am dealing with the same error message. Did you ever get to solve it and if so how?

Thanks a lot and best
Sandra
Hi Sandra,

Not sure if this is still relevant to you, but I ran into the same issue with SPM12 and Matlab 17a. I solved it in the following way:

legend('x mvmt', 'y mvmt', 'z mvmt','pitch','roll','yaw',0); --> remove the 0 at the end of that line (art_global, line  432)
legend('Fast motion',0);   ---> remove the 0 here as well, line 450

The realignment file has only 6 parameters, this is my reasoning at least but it worked for me for this issue.

Best,
Petya