pkg load image f = @(v,d)max(range(im2col(v,[1 d]))); f([6,9,4,7,4,1], 3)
Standard input is empty
ans = 6
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!