raacampbell / matlab_elastix

MATLAB Elastix wrapper
http://www.mathworks.com/matlabcentral/fileexchange/52982-matlab-elastix
GNU Lesser General Public License v3.0
26 stars 12 forks source link

Correct filename when only one parameters file is provided #12

Closed laurentiush closed 8 years ago

raacampbell commented 8 years ago

Have you tested this? I don't have a quick test to hand, but it does not look correct. The line you have added (line 249 in this commit) is:

[fPath,pName,pExtension] = fileparts(parameters{ii});

This is nested within an elseif statement that will only run if parameters is a string. In your line it's a cell array. I think the line you meant to add is:

[fPath,pName,pExtension] = fileparts(parameters{ii});

Is that correct?

laurentiush commented 8 years ago

Ah, I forgot to remove the {ii}, I'll make a new request.