Electromagnetic Diffraction Modeling and Simulation with MATLAB