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

📄 plotcompressnumbers.sci

📁 小波分解源代码
💻 SCI
字号:
function PlotCompressNumbers(coef,signaltitle)
// PlotCompressNumbers -- Plot Compression Numbers
//  Usage
//    PlotCompressNumbers(coef,signaltitle)
//  Inputs
//    coef           array of coefficients
//    signaltitle    title for plot  
//
//  Side Effects
//    A plot showing the compression curve for the given coeffs.
//
//  Description
//    Compression numbers show the additional accuracy obtained by
//    reconstructing with more coefficients.
//  
//  Copyright Aldo I Maalouf

	energy = sum(coef.^2);
	mm=reverse(sort(coef.^2));
	mm=sort(mm');
	cm     = [energy (energy - cumsum(mm))];
	n=size(cm,1);
	m=size(cm,2);
	nn=max(m,n);
	ccm=cm;
	for i=1:nn	  
	  if cm(i)==0
	     ccm(i)=1
	  end
	end
	plot(0:mtlb_length(coef),log(ccm),"m","log(c_m)"); 
	xtitle(mtlb_sprintf('Compression Numbers: %s',signaltitle))
endfunction

⌨️ 快捷键说明

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