Prev: Get minimum of the sum of 12 consecutive numbers in an array of 48
Next: Search for part of file name
From: RoK on 11 Aug 2010 11:25 Hi, I am using the spectrogram function of matlab and I am some problems for understanding its behaviour: S = spectrogram(x,[],[],512); for t = 0:0.01:26; x = cos(8*pi*t) + cos(16*pi*t); it gives me S with 257 rows while for other kind of signals x S becomes with 512 rows (as I ask) Is there any reason for that? Thanks for your help RoK --- news://freenews.netfront.net/ - complaints: news(a)netfront.net ---
From: RoK on 11 Aug 2010 12:11 "RoK" <rrtesdfsdfbdgsdgsdf(a)hotmail.com> ha scritto nel messaggio news:i3ufe8$1foe$1(a)adenine.netfront.net... > Hi, > I am using the spectrogram function of matlab and I am some problems for > understanding its behaviour: > > S = spectrogram(x,[],[],512); > > for > t = 0:0.01:26; > x = cos(8*pi*t) + cos(16*pi*t); > > it gives me S with 257 rows > while for other kind of signals x S becomes with 512 rows (as I ask) > > Is there any reason for that? > Thanks for your help > > RoK > > I try to give an answer, the other signal I was trying with was complex. Sorry RoK --- news://freenews.netfront.net/ - complaints: news(a)netfront.net ---
From: Wayne King on 11 Aug 2010 12:35
"RoK" <rrtesdfsdfbdgsdgsdf(a)hotmail.com> wrote in message <i3ui3b$1l20$1(a)adenine.netfront.net>... > > "RoK" <rrtesdfsdfbdgsdgsdf(a)hotmail.com> ha scritto nel messaggio > news:i3ufe8$1foe$1(a)adenine.netfront.net... > > Hi, > > I am using the spectrogram function of matlab and I am some problems for > > understanding its behaviour: > > > > S = spectrogram(x,[],[],512); > > > > for > > t = 0:0.01:26; > > x = cos(8*pi*t) + cos(16*pi*t); > > > > it gives me S with 257 rows > > while for other kind of signals x S becomes with 512 rows (as I ask) > > > > Is there any reason for that? > > Thanks for your help > > > > RoK > > > > > > I try to give an answer, the other signal I was trying with was complex. > Sorry > > RoK > > > > --- news://freenews.netfront.net/ - complaints: news(a)netfront.net --- Hi Rok, You answered your own question :) For complex-valued signals, there's no assumption that the magnitude response is an even function of frequency. Wayne |