get data from figure with other x classification

1 回表示 (過去 30 日間)
Frederik Reese
Frederik Reese 2022 年 7 月 19 日
コメント済み: Walter Roberson 2022 年 7 月 19 日
Hi,
I have plots, like the one attached, the code and the original data.
In the x axis is a distance.
The x Data of the original Data have no constant classification. The Distance is f.e. 1m, 0.8m 0.2m ....
I Want to get the x and y Data for a constant classification of 1m.
Any Ideas?
Thanks a lot
  2 件のコメント
Walter Roberson
Walter Roberson 2022 年 7 月 19 日
please also post an image, as an image could be examined even without having matlab handy.
Walter Roberson
Walter Roberson 2022 年 7 月 19 日
Extract the XData and YData properties from the line objects. Create a list of new x, such as ceil(min(x)):floor(max(x)) . Now interp1 the old x and old y asking to sample at the list of new x

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

回答 (1 件)

Frederik Reese
Frederik Reese 2022 年 7 月 19 日

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by