⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edgefold.sci

📁 小波分解源代码
💻 SCI
字号:
function extra = edgefold(which,xc,bp,bm)
// edgefold -- Perform folding projection with (+,-) polarity at EDGES
//  Usage
//    extra = edgefold(which,xc,bp,bm)
//  Inputs
//    which  string, 'left'/'right', indicating which edge we are at
//    xc     unfolded data, center window
//    bp     interior of window
//    bm     exterior of window
//  Outputs
//    extra  pseudo-left/right packet
//
//  Description
//    The result should be used as either left or right packet in
//    fold to ensure exact reconstruction at edges.
//
//  See Also
//    fold, unfold, CPSynthesis, CPImpulse
//
//  Copyright Aldo I Maalouf

	n = length2(xc);
	m = length2(bp);
	back  = n:-1:(n-m+1);
	front = 1:m;
	extra = xc.*0; 
	
	if string(which)=='left',
		extra(back) = xc(front) .* (1-bp)./bm;
	else
		extra(front) = -xc(back) .* (1-bp)./bm;
	end	

	endfunction

	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -