Code covered by the BSD License  

Highlights from
NLCSmoothReg

image thumbnail
from NLCSmoothReg by Michael Wendlandt
Computes a smooth regularized solution of an ill-posed discrete linear inverse problem.

Lplot(lambdavec,rho,eta)
function Lplot(lambdavec,rho,eta)

% make discrepancy plot
dp=figure;
set(dp, 'WindowButtonDownFcn', 'getposDP')
loglog(lambdavec,rho);hold on;loglog(lambdavec(1),rho(1),'LineStyle','none');
xlabel('\lambda'),ylabel('||S - K*g||');title('Discrepancy plot');

% make L-plot
lp=figure;
set(lp, 'WindowButtonDownFcn', 'getposLP')
loglog(rho,eta);hold on;loglog(rho(1),eta(1),'LineStyle','none');hold on;loglog(rho,lambdavec,'LineStyle','none')
set(gca,'XLim',[(0.99*min(rho)) max(rho)],'YLim',[min(eta) max(eta)]);xlabel('||S - K*g||'),ylabel('R[g]^0.5');title('L-curve')

Contact us at files@mathworks.com