This document presents a finite element model using cubic elements to characterize electromagnetic fields in a 3D waveguide transmission line. It uses the free and open-source GNU Octave software to perform the electromagnetic analysis and solve the Maxwell equations. The cubic finite element discretization is shown to provide an efficient solution with sparse matrices, reducing computational cost. Numerical results demonstrate good agreement between the cubic element model and analytical solutions for the electric and magnetic fields in the waveguide.