matlab 变下限积分 出错求解??? Error using ==> mldivide Matrix dimensions must agree.

日期:2014-05-14 08:41:27 人气:2

matlab 变下限积分 出错求解??? Error using ==> mldivide Matrix dimensions must agree.

被积函数需要写成向量化的形式。把 F = @( u , x ) ( 1 /( 1 + ( u^2 * x^(-4) )) * (0.8 * exp(-0.8 * u) ) );改成 F = @(u, x) ( 1./( 1 + ( u.^2 * x.^(-4) )) .* (0.8 * exp(-0.8 * u) ) );
    A+
热门评论