In this video I explain how to generate a simple rectangular wing. If you don't want the abrupt cut at the trailing edge resulting from the method I showed on the video, you can calculate the midpoint between the first and last nodes and place it some x = chord + some small distance. This way you'll get a sharp trailing edge. I have found this to be unnecessary but who knows. Hope you found the video useful, I am learning programming myself and doing these little videos as practice exercises. Playlist: 3D OBJECTS in MATLAB https://youtube.com/playlist?list=PLALdklvvx2NLIL-UrL3BymSRbZ4mC23hk Playlist: FILE FORMATS in MATLAB https://youtube.com/playlist?list=PLALdklvvx2NK2P7cVOBRPFmsPB3lFnXp_ Playlist: UTILITIES in MATLAB https://youtube.com/playlist?list=PLALdklvvx2NLBmDmp693MDiAuB2ISYNYO Link to surf2stl() download: https://www.mathworks.com/matlabcentral/fileexchange/4512-surf2stl?s_tid=srchtitle_surf2stl_1 repmat() documentation: https://www.mathworks.com/help/matlab/ref/repmat.html?s_tid=doc_ta readmatrix() documentation: https://www.mathworks.com/help/matlab/ref/readmatrix.html Software: MATLAB 2020b