Calling your cell arrays AA, AA1, AA2 is not a particularly good idea. These are completely meaningless names that just obfuscate the purpose of the code and makes it hard to debug.
Anyway. It's not clear what you mean by delete AA1{x}{x}. Do you want to change AA1{x} into a 1x35 cell array, or you want the content of AA1{x}{x} to be an empty matrix?
Either way,
AA1 = AA;
for diagidx = 1:numel(AA)
AA1{diagidx}(diagidx) = [];
end
As per Stephen's comment, your data structure is making it harder to manipulate. I would recommend you use a 2D cell array:
Best Answer