MATLAB: Cellfun: check cell array for any value below 5, if yes return true

cell arrayscellfun

Hi all, I have the following cell array
A = {4,5,6}
Is there a way to check whether any element is below 5 and return true if yes?
Been searching around but couldn't find any answers.
Cheers

Best Answer

any(cellfun(@(x)x < 5,A))
or
any([A{:}] < 5)