I am trying to store the results of a for loop in a cell array but I get the following error:
Cell contents assignment to anon-cell array object.Error in Untitled_2 (line 7)C{x} = Noise_x;
Here is my code:
Image = imread('C:\Program Files\MATLAB\R2017a\bin\face.jpg');imshow(Image);C = zeros(1:10); for x = 1:16i = randn(1);Noise_x = imnoise(Image,'gaussian',i);C{x} = Noise_x;endimshow(C(1));
Thank you in advance.
Best Answer