improve MATLAB analysis, comment out redundant analysis in java