Dataset comparison with different sample rate and start/stop times

4 ビュー (過去 30 日間)
Kerem Asaf Tecirlioglu
Kerem Asaf Tecirlioglu 2022 年 8 月 1 日
編集済み: Kerem Asaf Tecirlioglu 2022 年 8 月 1 日
Hello,
I have two devices in my hand. One is the encoder and other one is the IMU. The IMU attached to the encoder and then both are rotated simultaneously. I gather data from both devices with generic timestamps (GMT+3) import into the matlab using 'datenum' and 'xlsread' functions.
Here is the plot I get,
I need the differences in between to measure a mean error where the encoder data is the reference. But two vectors are not in same length due to the different sampling rates of devices. I tried many options; DSP tools , interp1, interpolation etc. Can you help me with this simple problem ?
NOTE: It is not really have be in the MATLAB environment. But I believe MATLAB is capable of doing such things ( Maybe not the easiest solution; easiest solution I prefer)
  3 件のコメント
Benjamin Thompson
Benjamin Thompson 2022 年 8 月 1 日
Can you post sample data and work you have done so far?
Kerem Asaf Tecirlioglu
Kerem Asaf Tecirlioglu 2022 年 8 月 1 日
編集済み: Kerem Asaf Tecirlioglu 2022 年 8 月 1 日
Thanks for the answer
Here is the code to import datasets,
[enc_val ,enc_time] = xlsread("ecnoder_quasi_2.xlsx");
[imu_val ,imu_time] = xlsread("sd_quasi_2.xlsx");
enc_time = datenum(enc_time,'hh:MM:ss.fff');
imu_time = datenum(imu_time,'hh:MM:ss.fff');
figure; plot(imu_time,imu_val,'Color','blue'); hold on; plot(enc_time,enc_val,'Color','red'); hold off;
I am attaching the workspace and the excels datasets.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by