Don't do that complicated stuff with cell arrays, etc. If you want to delete the third element (or ALL the elements listed in B), then simply do
out = A; % Initialize an output variable - make a copy of A.
out(B) = []; % Delete indexes given in B
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!