How to flip/ mirror plot on the diagonal in terms of y(x) = y^(-1)(x) (finverse) on restricted domain.

3 ビュー (過去 30 日間)
Niklas Kurz
Niklas Kurz 2021 年 1 月 5 日
編集済み: jessupj 2021 年 1 月 5 日
Given the function:
x(y) = (exp(-y)*((1 - 4*y*exp(y))^(1/2) + 1))/2
usually I should be able to plot the inverse function by:
fplot(finverse(x(y)))
unfortunaly an inverse cannot be found, because it get's imaginary.
However, can I still mirror the existing plot?
An inverse on (-inf, 0] should be possible.
  3 件のコメント
Niklas Kurz
Niklas Kurz 2021 年 1 月 5 日
編集済み: Niklas Kurz 2021 年 1 月 5 日
This just flips arrays doesn't it?
well, I could describe the function with array values but how to achieve it with symbolic functions?
jessupj
jessupj 2021 年 1 月 5 日
編集済み: jessupj 2021 年 1 月 5 日
if you know y=f(x), shouldn't you just plot ( f(y),y ) or something like that? e.g. plot( fliplr( [ x(:) f(x(:)) ] ))

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by