Automated script. sharp_auto_real.m