📄 plotcompressnumbers.m
字号:
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.
%
energy = sum(coef.^2);
cm = [energy (energy - cumsum(reverse(sort(coef.^2))))];
plot(0:length(coef),log(cm)); xlabel('m'); ylabel('log(c_m)');
title(sprintf('Compression Numbers: %s',signaltitle))
%
% Copyright (c) 1993. David L. Donoho
%
%% Part of Wavelab Version 850% Built Tue Jan 3 13:20:40 EST 2006% This is Copyrighted Material% For Copying permissions see COPYING.m% Comments? e-mail wavelab@stat.stanford.edu
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -