Some useful codes about fundamentals in ship science  by using MATLAB