Hi, Yixiang-
Hmm, OK.
Looking at the code, I think there is a mistake in how the inputs are read---right now, the program will only work if the 2 slice numbers are the same. Thanks for bringing this up. I will fix this and we will update the code.
Separately, I often use 3dZeropad with negative indices to cut away slices (rather than to add on zero-valued ones, as using positive values would):
[
afni.nimh.nih.gov]
or 3dAutobox:
[
afni.nimh.nih.gov]
But those might not suit your needs, and we obviously would like to fix the 3dZcutup program, anyways!
thanks,
pt