MATLAB: Delete columns of matrices in a cell array

cell arraysdeletematrix manipulation

I have a 1×5 cell array ,A, and each cell contains a 3×3 matrix. I'm trying to delete the second column from the matrix in each cell without using a for loop. I thought the following code might work but it does not. Any one has a good solution? Thanks.
Code I tried:
cellfun(@(x)x(:,2)= [],A)
Error message: The expression to the left of the equals sign is not a valid target for an assignment.

Best Answer

B = cellfun(@(x) x(:,[1 3]),A,'uni',0);
or
C = cellfun(@(x) x(:,1:2:end),A,'uni',0);