editing applycolormapping.m