enhance the date extraction procedure. Add function to get matlab window position.