Borrar filtros
Borrar filtros

How to plot PSD in MATLAB of given ascii value?

2 visualizaciones (últimos 30 días)
Koushik
Koushik el 27 de Jul. de 2013
Hello Everybody,
I am very new in MATLAB. I am having a text file containing 1024 ascii values. I want to plot PSD using rectangular or hanning window, fft and take scare of scaling of frequency and magnitude value. Please suggest the MATLAB code for this problem.
Thanks in advance!!!!!!
  1 comentario
Lisa Justin
Lisa Justin el 14 de Ag. de 2013
Editada: Lisa Justin el 14 de Ag. de 2013
First you need to unpack the binary data and convert to matlab format to be able to work with the data in matlab.

Iniciar sesión para comentar.

Respuestas (1)

Richard McCulloch
Richard McCulloch el 27 de Jul. de 2013
Is this what you're trying to do?
Fs = 1000;
t = 0:1/Fs:.3;
x=cos(2*pi*t*200)+randn(size(t));
Hs=spectrum.periodogram;
psd(Hs,x,'Fs',Fs)

Categorías

Más información sobre Parametric Spectral Estimation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by