Scaled Windowing Function

版本 1.0.0.0 (1.8 KB) 作者: Sergei Koptenko
Creates scaled window of set size.
2.2K 次下载
更新时间 2005/5/27

查看许可证

function to calculate window centered at the zero segment of outwind size

WFUNC - windowing function from the list:
'barthannwin' 'bartlett' 'blackman' 'blackmanharris' 'bohmanwin'
'gausswin' 'hann' 'nuttallwin' 'parzenwin' 'triang' 'hamming' 'flattopwin'

OUTWIND - length of the OUTPUT total window segment (padded with zeros
if OUTWIND> INSIDEWIND or truncated INSIDEWIND if OUTWIND < INSIDEWIND

INSIDEWIND - length of the windowing function centered in OUTWIND

EXAMPLE:

windd1 = partwind('flattopwin', 20, 60);
windd2 = partwind('flattopwin', 60);
windd3 = partwind('flattopwin', 90, 60);
figure; plot(windd1, 'r.-'); hold on; plot(windd2, 'b+-'); plot(windd3, 'ko-'); grid; axis tight
legend('insidewind<outwind', 'insidewind=outwind', 'insidewind>outwind')

引用格式

Sergei Koptenko (2024). Scaled Windowing Function (https://www.mathworks.com/matlabcentral/fileexchange/7723-scaled-windowing-function), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14SP1
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Windows 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0