Undefined function or Variable error

Hi,
I create a function to use the Mid-point formula to calculate the integral value, but it keeps showing undefined error. I wonder where is the problem, and how I can fix it? Thanks!

답변 (1개)

Walter Roberson
Walter Roberson 2023년 4월 30일

0 개 추천

x = a:h:b;
However, any current version of MATLAB may have problems with you replacing the function handle f with the result of invoking the function handle. Use different variable names for the function handle and the result of evaluation.

카테고리

도움말 센터File Exchange에서 Data Type Identification에 대해 자세히 알아보기

제품

릴리스

R2023a

질문:

Dan
2023년 4월 30일

댓글:

Dan
2023년 4월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by