function [out]=myDownsample(in,noSamples)
    stepSize=max(size(in))/noSamples;
    out=in(fix((0:noSamples-1)*stepSize)+1);
end