马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
请利用振动加速度信号做过轴心轨迹图的帮我看下程序,是哪里出问题了呢?现附上程序及数据文件(第一列为时间,第二列为加速度)。采样频率102400Hz
t=1/102400:1/102400:62/102400;
y1=cumtrapz(t,1(:,2));
figure(1);
subplot(3,1,1);
plot(t,y1);
grid on;
y2=cumtrapz(t,2(:,2));
subplot(3,1,2);
plot(t,y2);
grid on;
subplot(3,1,3);
plot(y1,y2);
grid on;
y3=cumtrapz(t,y1);
y4=cumtrapz(t,y2);
figure(2);
subplot(2,1,1);
plot(t,y3);
grid on;
subplot(2,1,2);
plot(t,y4);
figure(3);
plot(y3,y4);
grid on; |