MATLAB script to solve the linear relations in the flow chart