why do I get the error ??? Index exceeds matrix dimensions.
Error in ==> ImagExperiment at 38 g=rgb{N}(:,:,2); when trying to run the code:
A=cell(1,Num);rgb=cell(1,Num);for N=1:Num rgb{N} = imread(sprintf('test_image_%d.png', N)); r=rgb{N}(:,:,1); g=rgb{N}(:,:,2); b=rgb{N}(:,:,3);end
How can I solve this problem?
Your support will be well-appreciated. Thanks.
Best Answer