フィルターのクリア

Frequency response of an equation

1 回表示 (過去 30 日間)
Jackol Jackil
Jackol Jackil 2015 年 4 月 30 日
回答済み: Sebastian Castro 2015 年 5 月 1 日
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 Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by