How Do I Correctly Plot an Electric Field Around a Base Station Using MATLAB?

Click For Summary
SUMMARY

This discussion focuses on plotting an electric field around a base station using MATLAB, specifically within a 200m range. The user employs the equation E=[2*sqrt(30*N*P*G)]/r, with EIRP set at 57.5 dBm, G at 1, and N at 4. The initial attempt involves using a contour plot with the formula E=520./sqrt(X.^2+Y.^2), but the results are unsatisfactory. The user seeks guidance on improving the plot and correctly incorporating gain (G) into the calculations.

PREREQUISITES
  • Understanding of electric field calculations using EIRP and gain (G)
  • Familiarity with MATLAB plotting functions, particularly contour plots
  • Knowledge of meshgrid function in MATLAB for creating 2D grids
  • Basic grasp of mathematical equations related to electromagnetic fields
NEXT STEPS
  • Research how to correctly implement gain (G) in electric field calculations
  • Learn advanced MATLAB plotting techniques, such as surface plots and color mapping
  • Explore MATLAB's documentation on the contour function for better visualization options
  • Investigate the effects of varying parameters (EIRP, G, N) on electric field distribution
USEFUL FOR

This discussion is beneficial for electrical engineers, MATLAB users, and students working on projects involving electromagnetic field visualization and analysis.

jadelsky
Messages
13
Reaction score
0

Homework Statement



I need to plot an electric field in some range around base station, for example in range of 200m.

EIRP=57,5dBm
G=1 for the first example
N=4


Homework Equations



E=[2*sqrt(30*N*P*G)]/r
P=10exp[(EIRP-30)/10]
EIRP=57,5dBm
G=1 for the first example
N=4


The Attempt at a Solution




[X,Y] = meshgrid(-200:.50:200,-200:.50:200);
E=520./sqrt(X.^2+Y.^2);
contour(X,Y,E);

so when i calculate the numerator it's around 520 so i just placed it directly, and in the denominator part i placed sqrt(X.^2+Y.^2) so it's the result for any distance from the station in this range from 0 to 200...the result i get is not good, i used contour plot, I'm really not that familiar with plotting in MATLAB so this is the first option i thought will work (maybe there are better options?)...in the attached file i made a snapshot of my result and the result of some other example...my result should look something like that...

I would appreciate any help very much...Thanks!
 

Attachments

  • untitled.jpg
    untitled.jpg
    16.3 KB · Views: 473
Physics news on Phys.org
and also i should include G (gain) in the equation so it all don't come out symetric but i got no idea how should i do it...
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
1
Views
6K
  • · Replies 7 ·
Replies
7
Views
22K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K