フィルターのクリア

How to I find a x value from a given y?

142 ビュー (過去 30 日間)
Matilde Garcia
Matilde Garcia 2015 年 12 月 2 日
コメント済み: Suhel Tamboli 2021 年 3 月 9 日
I have plotted a Matlab graph using a long matrix. I am looking to find the code which gives me an x value from the line graph given a y.

採用された回答

Thorsten
Thorsten 2015 年 12 月 2 日
編集済み: Thorsten 2015 年 12 月 2 日
x(y==yourvalue)
or if you allow for some tolerance
tol = 1e-6;
x(abs(y-yourvalue) < tol)
  4 件のコメント
Coryn Melissa LLamoza Carabali
Coryn Melissa LLamoza Carabali 2020 年 10 月 14 日
Hi, have the same problem you have. Were you able to get it to work?
Suhel Tamboli
Suhel Tamboli 2021 年 3 月 9 日
Hello, how can I get y values for a range of x values (from a particular x value to another)?

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

その他の回答 (1 件)

Salih CIL
Salih CIL 2018 年 12 月 11 日
Thx it is working :)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by