Update HS_analysis.m