diff + integral in one function?

10 ビュー (過去 30 日間)
Franz Ferdinand Tritschel
Franz Ferdinand Tritschel 2017 年 6 月 3 日
回答済み: Walter Roberson 2017 年 6 月 3 日
Hi, as a beginner in matlab I have the following problem,
is it possible to use diff and integral in one function?
I want to calculate k of the image.
It would be ok to give x a fix value.
Matlab gives me the following error: [b]First input argument must be a function handle.[/b]
Is there another syms needed?
Using a @(z) at the first part of the intregral equals : [b]Undefined function 'diff' for input arguments of type 'function_handle'.[/b]
Many Thanks in advance, Lg Franz

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 6 月 3 日
diff is only differentiation for symbolic expressions and symbolic functions, not for function handles. You should define y as a symbolic function.

カテゴリ

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