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

📄 l1_pr.m

📁 You need to download the general purpose toolbox and the signal toolbox. You need to unzip these
💻 M
字号:
function [p]=l1_pr(b,a,r)%function [p]=l1_pr(b,a,r)% b : original (noisy) wavelet coeffs% a : weights% r : radius% p : convex projection of x [m,n]=size(b);ab = abs(b);aa = a; bb =ab;pind = [1:n];nind = [1:n];while(~isempty(nind)) %disp(size(nind)); c = (aa*bb'-r)/(aa*aa'); p(pind) = bb - c*aa; nind = find(p < 0); pind = find(p > 0); p(nind) = 0.0; aa = a(pind); bb = ab(pind);end;p =sign(b).*p;

⌨️ 快捷键说明

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