[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Quick Question About Signal Processing

From: Mat Spandl
Subject: RE: Quick Question About Signal Processing
Date: Fri, 11 Nov 2016 15:28:57 +0000

Hi Ahmed,


One possibility would be if y wasn’t a vector, for example if it was an array. If it’s got two rows (or columns) of data then look at them individually.


Hope this helps.





From: Help-octave [mailto:help-octave-bounces+address@hidden On Behalf Of Ahmed Husain ?Abbas Mohamed Sahrab
Sent: 11 November 2016 13:55
To: address@hidden
Subject: Quick Question About Signal Processing


Dear Esteemed Volunteers.


I have a question about incorporating a piece of code into my project.

I have found this piece of code online


   Fs = 1000;
    t = 0:1/Fs:1-1/Fs;
    x = cos(2*pi*100*t)+randn(size(t));
    [Pxx,F] = periodogram(x,[],length(x),Fs);


and I would like to use the wavread command and use that signal in place of the Fs,t and x. So, I wrote this bit of code


[y, fs]= wavread('song1.wav');

NFFT=input("Choose a fraze size of either 128, 256 and 512. ");

[Pxx,F] = periodogram(y,[],NFFT,fs);



But I am sad to report this it is not working, and that I am receiving this error


error: periodogram: X must be a real or complex vector


If you can help me I would appreciate it immensely 

With Love,

Ahmed Suhrab

reply via email to

[Prev in Thread] Current Thread [Next in Thread]