MATLAB中的画图程序和将xls表格数据化为图像

MATLAB中的画图程序和将xls表格数据化为图像

clc;
clear all;
close all;


dataGZ=...
   [ 1	5.52693708	5.523209824
2	11.04270613	5.506480584
。。。
100	72.38233199	0.032127012];



dataLhasa=...
    [1	5.054826411	5.052868731
2	10.10378374	5.044071989
。。。
100	82.06008295	0.082937259...
];


timeGZ=dataGZ(:,1);
velocityGZ=dataGZ(:,2);
accelerationGZ=dataGZ(:,3);

timeLhasa=dataLhasa(:,1);
velocityLhasa=dataLhasa(:,2);
accelerationLhasa=dataLhasa(:,3);


figure(1)
plot(timeGZ,velocityGZ,'.')
xlabel('time/s')
ylabel('velocity/m/s')
hold on
plot(timeLhasa,velocityLhasa,'o')
legend('velocity of GZ','velocity of Lhasa','Location','SouthEast');


figure(2)
plot(timeGZ,accelerationGZ,'.')
xlabel('time/s')
ylabel('acceleration/m/s^2')
hold on
plot(timeLhasa,accelerationLhasa,'o')
legend('acceleration of GZ','acceleration of Lhasa','Location','NorthEast');


stop_point=20;
figure(3)
plot(timeGZ(1:stop_point),accelerationGZ(1:stop_point),'.')
xlabel('time/s')
ylabel('acceleration/m/s^2')
hold on
plot(timeLhasa(1:stop_point),accelerationLhasa(1:stop_point),'o')
legend('acceleration of GZ','acceleration of Lhasa','Location','NorthEast');

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值