How do we calculate the integration of an imput handle function

2 ビュー (過去 30 日間)
HeadingUpHigh
HeadingUpHigh 2018 年 4 月 20 日
コメント済み: Walter Roberson 2018 年 4 月 20 日
so i get this error while trying to get the integration of handle functions
??? Function 'int' is not defined for values of class 'function_handle'.
Error in ==>
disp(int(f));
by the way i'm using Matlab 7.0 R14

回答 (1 件)

Birdman
Birdman 2018 年 4 月 20 日

int is used to calculate integrals of symbolic functions. To find integral of function handle, use integral.

https://www.mathworks.com/help/matlab/ref/integral.html

  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 4 月 20 日
integral() did not exist in R14. Use quadgk()

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

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by