3D surface plot from for loop
15 views (last 30 days)
The following is my code, which calculates RF path loss between a satellite and a ground station, factoring in altitude and trajectory.
f=5*10^6; %must be *10^3 less than given f. For example if f=5GHz, use 5MHz
for i = 1:181
Pt=10*log10(57.27*0.193)+30; %convert to dbm
I can easily create 2D plots from this such as plot(ang,Lp) etc.. But I want to create a 3D plot using the surf command, which plots (ang,Lp,d).
How is this possible ?
Thanks in advance.