我只想在 x 从 0.0001 到 0.007 和 y 从 0.00000001 到 0.0000009 的部分对 f 的图进行曲线拟合。我使用排除规则通过曲线拟合工具箱尝试了很多,但没有得到它。任何帮助将不胜感激。谢谢!
x =0:32/1024000:32;
m = ( x <= 16) .* ... % select the first part
( 0.0133 0.00002./((cos(pi/4)./sinh(0.5*log(0.05*x))) coth(0.5*log(0.05*x))) ) ...
( x > 16) .* ... % select second part
( 0.0133 0.00002./((cos(pi/4)./sinh(0.5*log(0.05*(32-x)))) coth(0.5*log(0.05*(32-x)))) ) ;
k = ( x <= 16) .* ... % select the first part
( -0.00004*cos(pi/4)./(cosh(0.5*log(0.05*x)) sin(pi/4)) ) - ...
( x > 16) .* ... % select second part
( -0.00004*cos(pi/4)./(cosh(0.5*log(0.05*(32-x))) sin(pi/4)) ) ;
z = complex(m,k);
y = ifft(z);
f = abs(y);
figure(1);
plot(x,(f));