Description: This function is used to build the corresponding sequences of a given
scaled gray level image matrix from 45 degree direction. The whole process is using zigzag method
It can handle nonsquare image matrix
File list (Check if you may need any files):
zigzag.m