Update analysis.m