MATLAB: Command ‘downsample’ in matlab doesn’t work

downsample

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

Best Answer

I think you need to give the error message, if any, you receive in R2010b. Do you have the Signal Processing Toolbox in your R2010b installation?
Enter
>>ver
to make sure you have the SP Toolbox.
I have no problem with this:
x = [1 2 3 4 5 6 7 8 9 10];
y = downsample(x,3);
in R2010b.