作为示例,我使用 x 和 y 轴在 MATLAB 中创建了以下数据:
t = 1:5 % time in seconds
dxx = [10,8,6,5,4] % speed in x direction
w = trapz(t,dxx) % distance object in x direction (numerical integration)
dyy = [9,7,6,5,3] % speed in y direction
c = trapz(t,dyy) % distance of object in y direction (numerical integration)
如何仅使用此数据绘制向量 dxx(t) vs dyy(t)(时间 t 的净轨迹)?