[EMAIL PROTECTED] wrote:
> FYI  it appears that the octave "downsample" function performs reasonably 
> but differently from MATLAB in the third argument, the phase of the 
> downsample:
>
> MATLAB:   downsample(1:10, 2, 0) ==> [1 3 5 7 9]
>
> OCTAVE:  downsample(1:10,  2,0) ==>  { barfs }
>
> OCTAVE:  downsample(1:10, 2, 1) ==> [1 3 5 7 9]
>
>
> In MATLAB, the meaning of the third argument is a phase offset, not a 
> starting index. 
>
> Jon
>   
>

Ok, I committed a fix that adds one to the phase in upsample and 
downsample for compatibility.

D.



-- 
David Bateman                                [EMAIL PROTECTED]
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to