My function f(x) doesn't display (compute?) the result for when f = 0.

1 回表示 (過去 30 日間)
Conrad Thomson
Conrad Thomson 2021 年 3 月 5 日
コメント済み: Conrad Thomson 2021 年 3 月 9 日
The x array has 9 distinct values (0 through 4 in steps of 0.5). f(x) only has 8. What am I doing wrong?
Thanks!

回答 (1 件)

Alan Stevens
Alan Stevens 2021 年 3 月 5 日
Replace
diff(g)
by
gradient(g)
  1 件のコメント
Conrad Thomson
Conrad Thomson 2021 年 3 月 9 日
I appreciate that. Clearly, I'm a newbie to this software. Thanks!

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by