f = @(x)repmat(2>n(unique(cellfun(n=@numel,x))),n(x)>0); f({})f({[1], [1], [2]})f({[1]})f({[1 2 3 4]})f({[1 2 3 4 5],[2],[12, 314123]})f({[1 2 3 4],[1]})
Standard input is empty
ans = [](0x0) ans = 1 ans = 1 ans = 1 ans = 0 ans = 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!