1、如果假定应力与应变有如下关系( 为应力值, 为应变值): =a+bln 试计算 a 、b 的值。 MATLAB 的表达形式如下: x=925,1125,1625,2125,2625,3125,3625; y=0.11,0.16,0.35,0.48,0.61,0.71,0.85; plot(x,y,o) p,resid1=polyfit(x,y,2)Hold onxi=linspace(700,3700,3000); yi=polyval(p,xi); plot(xi,yi) x0=0.1,0.1; fff=inline(a(1)+a(2)*log(x),a,x); a,resid2=lsqcu
2、rvefit(fff,x0,x,y) plot(xi,fff(a,xi),r)如果假定应力与应变有如下关系( 为应力值, 为应变值): =a+bln 试计算 a 、b 的值。 MATLAB 的表达形式如下: x=925,1125,1625,2125,2625,3125,3625; y=0.11,0.16,0.35,0.48,0.61,0.71,0.85; plot(x,y,o) p,resid1=polyfit(x,y,2)Hold onxi=linspace(700,3700,3000); yi=polyval(p,xi); plot(xi,yi) x0=0.1,0.1; fff=inline(a(1)+a(2)*log(x),a,x); a,resid2=lsqcurvefit(fff,x0,x,y) plot(xi,fff(a,xi),r)