MATLAB: Replace all numbers in a cell array that are less than 10 to 10.

cell arrayMATLABreplace

I have a cell array that holds mutiple different sized cell arrays inside it. The values are all numbers. I want to replace all numbers that are less than 10 to 10.
Thanks in advance!

Best Answer

cellfun(@(C) cellfun(@(M) max(M,10), C, 'uniform', 0), YourOuterCellArray, 'uniform', 0)
Related Question