update analysis_linking_data matlab code