RCWA3D A series of MATLAB functions to simulate periodic structures using the Rigorous Coupled Wave Analysis method.