help-octave
[Top][All Lists]
Advanced

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

Re: periodogram format question


From: Freddy López
Subject: Re: periodogram format question
Date: Thu, 8 Dec 2011 20:54:18 -0430

Hello.

If I type:

periodogram(rand(1,10))

I get:

error: vertical dimensions mismatch (1x1 vs 1x127)
error: called from:
error:   /usr/local/share/octave/3.4.3/m/signal/periodogram.m at line 158, column 5

And if I type:

periodogram(rand(10,1))

I get a plot.

So, I suppose you arrange your data as

a = [-1;-1;-1; 2;-1;-1; 2; 1; 1;
 2; 2;-1;-2;-1; 2;-2; 1;-1;
-1; 1;-2; 1; 1; 1; 2;-2; 1;
 2;-1;-1;-1; 1;-1;-2; 1; 1;
-1;-2;-1;-1;-1;-1; 2;-1; 2;
 2;-2;-2;-1; 2; 1; 2;-2;-1]

and type:

periodogram(a)

you will get a periodogram.

But I'm not sure...

On Thu, Dec 8, 2011 at 17:21, jp d <address@hidden> wrote:
hi,
dumb question,
what wrong with this?

a = [-1,-1,-1, 2,-1,-1, 2, 1, 1;
 2, 2,-1,-2,-1, 2,-2, 1,-1,;
-1, 1,-2, 1, 1, 1, 2,-2, 1;
 2,-1,-1,-1, 1,-1,-2, 1, 1;
-1,-2,-1,-1,-1,-1, 2,-1, 2;
 2,-2,-2,-1, 2, 1, 2,-2,-1;]

periodogram(a)

i get these errors:

error: operator -: nonconformant arguments (op1 is 6x9, op2 is 1x9)
error: evaluating binary operator `-' near line 41, column 25
error: evaluating argument list element number 1
error: evaluating argument list element number 1
error: evaluating binary operator `.^' near line 41, column 39
error: evaluating binary operator `/' near line 41, column 44
error: evaluating assignment _expression_ near line 41, column 10
error: called from `periodogram' in file `/usr/share/octave/3.0.5/m/signal/periodogram.m'
error: near line 8 of file `negnotyet.dat'

thanks
jpd
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave



--
«But Gwindor answered: 'The doom lies in yourself, not in your name.'»

JRR Tolkien


reply via email to

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