Frequency response of an equation

1 次查看(过去 30 天)
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.

采纳的回答

Sebastian Castro
Sebastian Castro 2015-5-1
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Spectral Measurements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by