필터 지우기
필터 지우기

Find inverse of a function

조회 수: 9 (최근 30일)
khu
khu 2016년 6월 1일
댓글: Prasidh Ramabadran 2016년 6월 6일
Hello Everyone,
I have a function defined in m file. As finverse only work for symbolic expressions, I was wondering if there is any way to find the inverse of a user defined function.
  댓글 수: 3
Pavel Dey
Pavel Dey 2016년 6월 6일
Seems there is no direct way of doing it. You will have to find it manually. To get the zeros of a function you may use 'fzero' function.
Prasidh Ramabadran
Prasidh Ramabadran 2016년 6월 6일
If your function is a polynomial expressed in powers of x, one of the ways to find the co-efficients of powers of x could be the usage of the backslash '\'operator. You would be able to solve your curve fitting equation without finding the inverse. This would application specific. Let me give you an example:
Consider, a non-linear amplifier device with some known set of input and output powers. Now, power is proportional to the square of the voltage. Estimating the voltage gain of the amplifier would require multiplying the inverse of the input voltage matrix ( calculated from input power data) with the output voltage matrix (calculated from the output power data). This could be done using the back-slash function. The output voltage for each input voltage could be expressed in the form a.x + b.x^2 + c.x^3 where a,b and c are the gain co-efficients corresponding to the input voltage, its square and cube. Let this be a column matrix in the form A=[a; b; c]. Make an input matrix of the form X=[x1 x1^2 x1^3; x2 x2^2 x2^3; ............]. Make an output matrix of the form Y = [y1; y2; ................].
Your task would now be to find the co-efficient matrix 'A'. The conventional way of doing this would be to multiply matrix 'Y'with inverse of 'X'. You could solve this using backslash operator as A = X\Y; The matrix A will give you the values of a, b and c for each input value of x that yields an output value of y.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by