I require a plot on Matlab.
The code attached below is in C++. It is to be run on Matlab.
"Convert the C++ program given to Matlab and execute this program for the first 700m of the X.04 terrain profile."
The program reads in the terrain datafile 'X.04' and outputs the surface current ([login to view URL]) and the total field above the surface ([login to view URL]) as a function of distance from the transmitter.
The plot that is required has to be of - "abs(J)" 2.4m above the surface.
I am also attaching the main.m file which I was unable to run/complete.
Also, the screenshot of the plot for 3840m is attached.