Modified the matlab scripts.