Frequency response of an equation
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Jackol Jackil
il 30 Apr 2015
Risposto: Sebastian Castro
il 1 Mag 2015
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.
0 Commenti
Risposta accettata
Sebastian Castro
il 1 Mag 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
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!