MATLAB: Remove numbers from a cell array of length n = 10963

MATLABstring

As I can remove numbers from a cell array?
I have a cell of 10693 rows and 1 column. Each of these rows contains another array containing numbers and I want to delete the numbers (-1). As I can do that with a loop? thank you very much

Best Answer

If A is your array
A={1:3 -1:5}
out=cellfun(@(x) x(x~=-1), A,'un',0)
Related Question