I'm trying to equate each element to an array which correspond to cell element. To explain it more precisely, e.g
A    = {[1 1 1], [0 0 0 0 0], [1 1],[0 0 0 0 0]};
B    = [0 1 0 0];
So the thing I want is :
A= {[0 0 0],[1 1 1 1 1],[0 0],[0 0 0 0 0]};
Possible solution with for loop is :
for ii=1:length(A)
     A{ii}(:)=B(ii);
end
Is there any methode which does not use loop?
 
     
     
    