Matlab Code For Beam Analysis