Fluidic analysis MATLAB code