带参数的数值积分,帮忙看下哪错了。
이전 댓글 표시
求y=kx在【1,5】上的积分:
k=linspace(0,5);
>> for i=1:length(k)
kk=k(i);
fun=inline('kk.*x','x');
y(i)=quadl(fun,1,5);
end
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 函数基础知识에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!