📄 expfitfun4.m
字号:
function [obj,lincoef] = expfitfun4(coef,xdata,ydata)% Partitioned least squares solution for the batched% single exponential , used from lsqnonlin[m,n] = size(xdata);M = exp(xdata*spdiags(-coef,0,n,n));% solve for the linear parameters in one operationi = (1:(m*n))';j = repmat(1:n,m,1);j=j(:);M = sparse(i,j,M(:),n*m,n);lincoef = M\ydata(:);obj = ydata(:) - M*lincoef;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -