我收到了以下错误消息: str2lang(x)::2:0中的错误:输入1:^的意外结束,并且已经尝试了两天来找出问题所在。我真的需要你们的帮助伙计们!我的代码分两个阶段构建:如果你能在这个问题上提供帮助,那就太棒了。可获得更多信息。
# Function to dermine the fraction of
) - .5; % rescale X -> -.5 to .5s = sigma / imSize;
trim = .005; % trim off gaussian values smaller than this
gauss(gauss < trim) = 0; % trim around ed
下面的示例将与区间[-1, 1]上的Gauss方法进行比较。(default interval is [-1, 1])x, w = np.polynomial.legendre.leggauss(deg)print 'Difference between QUADPACK and Gauss-Legendre: ', abs(gauss- quad)
输出