Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Get data from plot at specific points not available in the original data.

1 回表示 (過去 30 日間)
ayat
ayat 2017 年 9 月 29 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Here sections for my x and y data:
X:
0, 0.048522, 0.097044, 0.145566, 0.194088, 0.24261
and Y:
-0.626144, -3.172536, -2.938785, -3.454333, -3.813695, -1.108578
I want to know the y value for specific x values, such as 0.04, 0.08, etc.
Edit: I have attached the whole data here if you want to take a look.
  2 件のコメント
ayat
ayat 2017 年 9 月 29 日
I did try to use the interpolation technique, but could not reach a good solution. I would appreciate it if you take a look at the data and see how can I get what I want.

回答 (1 件)

Rik
Rik 2017 年 9 月 29 日
What you want is impossible without fitting a function to your data. This can be achieved in many ways, for example by fitting a quadratic curve to your data with polyfit.
  2 件のコメント
ayat
ayat 2017 年 9 月 29 日
編集済み: ayat 2017 年 9 月 29 日
Oh damn it. Well, actually the data I posted is a part of the 400 point data. I have attached the data here.
Rik
Rik 2017 年 9 月 29 日
My point still stands. You need to fit a function (or use a spline method) before you can interpolate data. That you have 400 points instead of 6 doesn't really matter (although it may improve the fit).

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by