From: RoK on
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

"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
"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