put a short pause before invoking save_planC function to avoid Matlab accelerator errors.