function y=f(x) %error message Input argument x might be unused
m = linspace(0,Inf,100);
x = linspace(-2.*pi,2.*pi);
y= int(x.^2 .* exp(-(x/2)), 0, m) - 8;

답변 (1개)

the cyclist
the cyclist 2021년 12월 4일

0 개 추천

Because you have the code
x = linspace(-2.*pi,2.*pi);
the value of x that comes in via the input is never used. That is why you see a warning message.

카테고리

도움말 센터File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

질문:

2021년 12월 4일

답변:

2021년 12월 4일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by