Irregular timestamps of measurement in existing graph

1 回表示 (過去 30 日間)
Elon Hendriksen
Elon Hendriksen 2022 年 7 月 6 日
コメント済み: Elon Hendriksen 2022 年 7 月 22 日
Hi,
I have simulated a non linear pendulum and now i want to compare an experiment with the previously modelled pendulum. My simulation has a timestep of 0.01s and I have a 100Hz recording of my experiment but it turns out the recording is not exactly on the 0.01 second every time. I have the recording with timestamps and now I would like to input the recording in the (simulated) exsisting graph at the specific times.
Hope somebody can help here!
Kind regards, Elon

回答 (1 件)

KSSV
KSSV 2022 年 7 月 6 日
You may consider interpolating the data to desired timestamps using interp1.
  1 件のコメント
Elon Hendriksen
Elon Hendriksen 2022 年 7 月 22 日
Thanks! I figured it out! turns out you can have different x axis vlaues in one plot without issues.

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

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by