问题描述
matlab程序如下:xishu1=zeros(20,2);xdata=zeros(10,1);ydata=zeros(10,1);fun1=@(x,xdata)(1/(((2*pi)^0.5)*x(2)))*exp(-((xdata-x(1))/((2^0.5)*x(2))).^2);x0=[34];x=lsqcurvefit(fun1,x0,xdata,ydata,[-inf0],[infinf]);xishu1(2,:)=x;fun1=@(xdata)(1/(((2*pi)^0.5)*xishu1(c,2)))*exp(-((xdata-xishu1(c,1))/((2^0.5)*xishu1(c,2))).^2);如何转换成java呀?!
时间: 2024-09-28 07:18:49