Update Scan.m

Updated Scan.m to match with filter2.m