If you are interested in analysing propagation of electromagnetic waves in a lossy medium using MATLAB then i'm sure you have checked the internet and found no reference to do it. I also suffered this problem so i tried it by myself. You can do this by just following the steps in this instructable.g
Step 1: Open Matlab
Open Matlab (any version installed) in your desktop PC or laptop.
Step 2: Open Script Editor
After the MATLAB opens click on the New script on the upper left corner of the window.
Step 3: MATLAB Commands
Just download the provided M-file and copy it into the new script.
Step 4: Run the Program
Save the program and run it by clicking on the run command available at the upper centre position or by pressing F5 on your keyboard.