I have the following FOR loop
I = imread('image.png') for i = 2:1:5 init = ones(i) [J,PSF] = deconvblind(I,init) end
and I would like to save all the [J,PSF] pairs.
I tried using
for i = 2:1:5 init = ones(i) [J,PSF] = deconvblind(I,init) [X(i),Y(i)] = [J,PSF] end
but I got the " Dimensions of matrices being concatenated are not consistent. " error.
Could, anyone, please, give me a hint on how to solve this?
Best Answer