@(a)min(fix(a./[3 1 1 1])) ans([6 1 1 1])
Standard input is empty
ans = @(a) min (fix (a ./ [3, 1, 1, 1])) ans = 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!