If I have a cell containing vectors, How can I multiply each cell with another vector?
Say cell C has a size of 10*2 and each element in cell C has a size of 100*175. I want to multiply each element in cell C with a vector d with a size 100*175(element by element multiplication).
I have tried
result=cellfun(@(n) n.*d,C,'UniformOutput',false);
But it matlab gives me this error
Error using .* Matrix dimensions must agree.
Where did I do wrong? cheers
Best Answer