Moving x point to compare

2 次查看(过去 30 天)
Ase U
Ase U 2018-5-26
编辑: Ase U 2018-8-18
Hi everybody,
i have a small problem, maybe they can help me and i would be appreciate that.
I have two different brake-pressure data but my time was different measured (so x-axes). I want to move my green graph move left, so like above blau one, then i can compare it. Do you have solution for me? Thank you already.
  1 个评论
Ameer Hamza
Ameer Hamza 2018-5-26
You can move your data to the left removing the elements from the beginning of the y vectors, or changing the values in the x vector. Unless you can share your data, it is difficult to suggest an exact solution.

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2018-5-26
Use the same x axis for both
plot(Time, Bremsdruck_Rad_HL, 'b-', 'LineWidth', 2);
hold on;
plot(Time, cm.CAN_RB2_BREMSDRUCK_RAD_BRP_WHL_RLH.data, 'r-', 'LineWidth', 2);
grid on;

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by