1、读取gps数据,异常处理

clear all
test=importdata('2017- 9-29- 7- 5-23.txt');
[r,c]=size(test.data);%row行,column列
a=max(size(test.data));%行
l=length(test.data);
for i=1:r
    lon(i)=test.data(i,8);%经度
    lat(i)=test.data(i,7);
end
%% 异常处理
lon(find(lon==0))=[];
lat(find(lat==0))=[];
plot(lon,lat);
find(lon==0)
xlabel('经度','fontsize',13,'fontweight','bold');
ylabel('纬度');
title('轨迹') 
grid on
save gps_27 lon lat

2、 

相关文章:

  • 2021-12-27
  • 2022-01-23
  • 2021-08-21
  • 2021-06-19
  • 2021-09-09
  • 2022-12-23
  • 2021-05-21
  • 2022-02-07
猜你喜欢
  • 2021-07-10
  • 2021-12-04
  • 2021-10-11
  • 2021-12-25
  • 2022-12-23
  • 2021-08-31
  • 2021-07-03
相关资源
相似解决方案