On 8 July 2012 15:39, Mike Miller <mtmil...@ieee.org> wrote:
> On Fri, Jul 6, 2012 at 7:20 PM, Sergei Steshenko <sergst...@yahoo.com> wrote:
>> Hello,
>>
>> here is a quick example:
>>
>> "
>> octave:43> [y, xm] = rceps([1 2 3 4]);
>> octave:44> xm
>> xm =
>>
>>    3.98049   3.01913   2.01951   0.98087
>>
>> octave:45> [y, xm] = rceps([1 2 3 4 5]);
>> octave:46> xm
>> xm =
>>
>>    4.9244   3.7654   1.5151
>>
>> octave:47>
>>
>> ".
>>
>> In the second case 'xm' has just 3 elements, though it is supposed to have 5.
>
> Hi Sergei, I agree I think this is a bug.  Moving to octave-dev list.
>
> Can someone with ML signal toolbox please send back the results of:
>
> [y, xm] = rceps ([1, 2, 3, 4])
> [y, xm] = rceps ([1, 2, 3, 4, 5])
> [y, xm] = rceps ([0])
> [y, xm] = rceps ([1])

Finally I got access to MatLab to test this. Here's what happens there:

>> [y, xm] = rceps ([1, 2, 3, 4])

y =

    1.2688    0.4024    0.2291    0.4024


xm =

    3.9805    3.0191    2.0195    0.9809

>> [y, xm] = rceps ([1, 2, 3, 4, 5])

y =

    1.5073    0.4078    0.1926    0.1926    0.4078


xm =

    4.9610    3.8710    3.3114    1.8518    1.0048

>> [y, xm] = rceps ([0])
Error using rceps (line 36)
The Fourier transform of X contains zeros. Therefore, the real
cepstrum of X does not exist.

>> [y, xm] = rceps ([1])

y =

     0


xm =

     1

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to