Borrar filtros
Borrar filtros

Frequency response of an equation

1 visualización (últimos 30 días)
Jackol Jackil
Jackol Jackil el 30 de Abr. de 2015
Respondida: Sebastian Castro el 1 de Mayo de 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.

Respuesta aceptada

Sebastian Castro
Sebastian Castro el 1 de Mayo de 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

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by