Appendix MATLAB reference codes for MBB beam