[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems with function 'resample'
From: |
Terry Duell |
Subject: |
Problems with function 'resample' |
Date: |
Tue, 11 Jun 2013 11:06:54 +1000 |
User-agent: |
Opera Mail/12.15 (Linux) |
Hello All,
I'm not sure if this is due to my use of 'resample', or a bug.
I have a signal (acc) , sampled at 2438.095535 Hz (variable Fs).
I would like to resample to 200 Hz, and use the following...
[newacc,h] = resample(acc, 200, uint32(Fs));
and get the following error message...
warning: division by zero
error: resample: product: nonconformant arguments (op1 is 65535x1, op2 is
65536x1)
error: called from:
error: /home/terry/octave/signal-1.2.2/resample.m at line 82, column 6
So thinking it might be an issue with difference between the real and
integer sample rates, I try...
[newacc,h] = resample(acc, 200000000, 2438095535);
and get the following error message...
warning: division by zero
error: invalid range
error: called from:
error: /home/terry/octave/signal-1.2.2/resample.m at line 66, column 6
Is there a correct way to resample my signal to 200 Hz, or do we have a
bug?
Cheers,
--
Regards,
Terry Duell
- Problems with function 'resample',
Terry Duell <=