Computing the inverse of function in MATLAB

后端 未结 3 877
无人共我
无人共我 2021-02-10 17:16

How do you compute the inverse of a function in MATLAB? Say you want to compute the inverse of f(x)=e^x, what would be the code?

3条回答
  •  星月不相逢
    2021-02-10 17:42

    you can use finverse from the symbolic math toolbox http://www.mathworks.com/help/symbolic/finverse.html but for your example you can just do ln()?

提交回复
热议问题