How to plot PSD in MATLAB of given ascii value?
1 次查看(过去 30 天)
显示 更早的评论
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
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
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)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parametric Spectral Estimation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!