How to plot PSD in MATLAB of given ascii value?

조회 수: 1 (최근 30일)
Koushik
Koushik 2013년 7월 27일
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
Lisa Justin
Lisa Justin 2013년 8월 14일
편집: Lisa Justin 2013년 8월 14일
First you need to unpack the binary data and convert to matlab format to be able to work with the data in matlab.

댓글을 달려면 로그인하십시오.

답변 (1개)

Richard McCulloch
Richard McCulloch 2013년 7월 27일
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)

카테고리

Help CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by