i have a cell array with elements 22*22,18*18*6,14*14*6,10*10*6,6*6*6.can u please help me to initialize it
Update:
s{l(:,:,feature_map)=zeros(22,22),zeros(18,18,6),zeros(14,14,6),zeros(10,10,6),zeros(6*6*6)
By using the above command first element of cell array is empty.all other elements have 22*22*6 elements.it'l create problems in convolution
code is:
num_of_maps_in_layer{1}=1;
for i=1:3
num_of_maps_in_layer{i+1}=6;
end
num_of_maps_in_layer{5}=6;
for l=2:5
for feature_map=1:num_of_maps_in_layer{l}
sensitivity{l}(:,:,feature_map)=zeros(22,22),zeros(18,18,6),zeros(14,14,6),zeros(10,10,6),zeros(6*6*6)
end
end
l? What isfeature_map? What do you wantsand its contents to look like (i.e. size, number of dimensions, etc.)? These are the details we need from you, otherwise we're just making blind stabs in the dark.