How to calculate a natural logarithm of a function handle?

6 views (last 30 days)
Max on 10 Feb 2016
Edited: Matt J on 10 Feb 2016
I would like to calculate the ln of the function Inum which is an integral of a symbolic function y(t). For that I converted y(t) into a function handle.
f = log(Inum);
Does anybody know why the code above is not working?

Answers (1)

Matt J
Matt J on 10 Feb 2016
Edited: Matt J on 10 Feb 2016
You define Inum as an anonymous function of x, but 'x' appears nowhere in the expression
Also, since Inum is a function, then its log should also be a function
f=@(x) log(Inum(x));

Community Treasure Hunt

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

Start Hunting!

Translated by