Frequency response of an equation

3 views (last 30 days)
Hi,
I have an equation and I would like to see its frequency response. Here is the equation:
e(w)= 1- (wp)^2/(w)^2
where wp is plasma frequency and equal to 1.37*10^16 Hz. My desire frequency is 21.99*10^14.
I do not know how to plot this in matlab. Could anyone kindly help me please.

Accepted Answer

Sebastian Castro
Sebastian Castro on 1 May 2015
So wp is a constant and w is the frequency you want to input?
Create a vector of frequencies to sample. You probably want this logarithmically:
w = logspace(12,16,100) % 100 points between 10^12 and 10^16
Then, evaluate that frequency response for EACH frequency. Whenever you do element-by-element calculations, you want to use dot multiply/dot divide/dot exponential.
e = 1 - (wp./w).^2;
Finally, you can plot this in a log-log plot:
loglog(w,e)
- Sebastian

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!