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