command 'downsample' in matlab doesn't work
Show older comments
for example :
x = [1 2 3 4 5 6 7 8 9 10];
y = downsample(x)
we see :
y =
2 4 6 8 10
but for :
x = [1 2 3 4 5 6 7 8 9 10];
y = downsample(x,3)
it doesn't work
in matlab R2011b
Accepted Answer
More Answers (1)
Wayne King
on 7 Nov 2011
Please enter:
>>which downsample
at the command line. I think in your R2010b version you have some other downsample.m (which is not the MATHWORKS version).
If this other downsample.m precedes the MATHWORKS version on your path, then you are calling that program and not the MATHWORKS version.
If you do not get back something like:
toolbox/signal/signal/downsample.m
then you have a different version of downsample.m
1 Comment
amid aliaghazadeh
on 7 Nov 2011
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!