y = downsample(x,n) decreases the sampling rate of x by keeping every nth sample starting with the first sample. x can be a vector or a matrix. If x is a matrix, each column is considered a separate sequence.
y = downsample(x,n,phase) specifies the number of samples by which to offset the downsampled sequence. phase must be an integer from 0 to n – 1.
See this link: http://www.mathworks.com/help/signal/ref/downsample.html
y = upsample(x,n) increases the sampling rate of x by inserting n – 1 zeros between samples. x can be a vector or a matrix. If x is a matrix, each column is considered a separate sequence. The upsampled y has x*n samples.
y = upsample(x,n,phase) specifies the number of samples by which to offset the upsampled sequence. phase must be an integer from 0 to n – 1.
See this link: http://www.mathworks.com/help/signal/ref/upsample.html