function rtSampleTimes = getRuntimeSampleTimes(sampleTimes)

% Ignore Inf sample times from vector, and 
% [Inf 0] and [Inf Inf] from cell array of sample times.

    if iscell(sampleTimes)
        infSampleTimes = cellfun(@(x) isinf(x(1)), sampleTimes);
        rtSampleTimes = sampleTimes(~infSampleTimes);
    else
        rtSampleTimes = sampleTimes(~isinf(sampleTimes));
    end
end
