Adriano
Followers: 0 Following: 0
Feeds
提问
Code shows matrix is singular to working precision. How can I fix it?
x=[-2 0 1 2 3] y=[2.5,1,2.5,5.7,11.6] A=[x.^0 x.^2] alin=A'*A\A'*log(y) a=[exp(alin(1));alin(2)] r=a(1)*exp(a(2)*x.^2)-y R...
1 year 前 | 1 个回答 | 0