MATLAB source code from Mr. Kubota for his graduation thesis