📄 oversample.m
字号:
% function bigvector = oversample(vector, ratioMore);%% Oversample 'vector' by a ratio 'ratioMore' (eg. ratioMore=2% means that bigvector has 2 X as many entries as vector.%% Use linear interpolation between real pointsfunction bigvector = oversample(vector, ratioMore);%choice='resample'; %note that this depends on the signal toolboxchoice='noInterp';if (choice=='noInterp') newsize = ratioMore*length(vector); bigvector = ones(1,newsize); for ii=1:ratioMore bigvector(ii:ratioMore:end) = vector; endelseif (choice=='resample') bigvector = resample(vector,ratioMore,1);else error('No other options');end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -