フィルターのクリア

I want to extract values from a graph

5 ビュー (過去 30 日間)
Andreas Makrides
Andreas Makrides 2020 年 11 月 2 日
編集済み: Gouri Chennuru 2020 年 11 月 5 日
I have a graph and i have one coloum array, how can i find the graph value for each point of the array

回答 (1 件)

Gouri Chennuru
Gouri Chennuru 2020 年 11 月 5 日
編集済み: Gouri Chennuru 2020 年 11 月 5 日
Hi Andreas,
As a workaround, You can try the following steps,
Step 1: use the x and y data values from the graph which are already available, and if the x is in the x array that you plotted, you can do this:
index = find(x == desiredXValue); % May be multiple indexes, possibly
yDesired = y(index);
Step 2: Now, if the desired x is not in your x array, then you can use “interp1()” to get the interpolated/estimated y value for that x.
yDesired = interp1(x,y, desiredXValue);
Hope this Helps!

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by