Matlab map
初始文件格式:
svid=26,frm_cnt=1,max_freq=233,max_chip=90,max_mag = 1085
svid=26,frm_cnt=2,max_freq=261,max_chip=3996,max_mag = 10fc
awk,sed相关命令:
sed 's/=/ /g;s/,/ /g' 20121227_acq_out.txt |awk '{the="0x"$10;print $6","$8","strtonum(the)}'>t27mt.txt
(网页复制后"0x",在putty上显示‘0x')
matlab使用命令:
load t25mt.txt
ln=tt(:,1)
x=tt(:,2)
y=tt(:,3)
z=tt(:,4)
subplot(311)
plot(ln,x,'o')
title('maxfreq')
subplot(312)
plot(ln,y,'o')
title('maxchip')
subplot(313)
plot(ln,z,'o')
title('maxmag')