changed name of analysis.m to all_analysis.m to prevent conflict with built-in matlab function called analysis.m