MATLAB: Multiply two cell arrays

cell arrays

Hi i have following two cell arrays mul1 and mul2.
I want to multiply each cell of mul1 with corresponding cell of mul2. I am using following code
for i=8
for j=7
mul3{i,j}= mul1{i,j}.*mul2{i,j};
end
end
but it gives error:
Error using .*
Matrix dimensions must agree.
i also tried without using loop but still same issue.
Please help

Best Answer

Try this:
res=cellfun(@times,mul1,mul2,'uni',0)