フィルターのクリア

Undefined function or Variable error

1 回表示 (過去 30 日間)
Dan
Dan 2023 年 4 月 30 日
コメント済み: Dan 2023 年 4 月 30 日
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 日
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.
  1 件のコメント
Dan
Dan 2023 年 4 月 30 日
I got it! Thank you so much!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by