MATLAB: How to create a 2D shell element

2d shell element3d shell elementdeformed shapefemplotshell element

I try to learn how to create a 2D (or 3D) shell element.
Can anyone help me with the MATLAB code?