我遇到了麻烦试图比较和绘制不同长度的两个文件。在MATLAB中,我不知道如何在同一个x轴上绘制两个不同长度的向量。由于一个文件缺少一些数据,因此我想创建一行并为相应的时间戳留出空格。下面是数据文件的样本:如何在MATLAB中在同一轴上绘制不同长度的向量?
文件1:
date time T01 T02 T03 T04 T05
8/16/2009 0:00, 516.900024, 450.5, 465.200012, 546.799988, 539.700012
8/16/2009 0:10, 351.200012, 398.899994, 418.100006, 510.299988, 518.5
8/16/2009 0:30, 241.399994, 252.399994, 256, 360.600006, 386.5
8/16/2009 1:00, 184.199997, 154.300003, 143.899994, 236.600006, 244.399994
文件2:
date time T01 T02 T03 T04 T05
8/16/2009 0:00, 656.799988, 611.200012, 860.599976, 604.700012, 288.5
8/16/2009 0:10, 527.400024, 359.200012, 789.099976, 789.099976, 446.799988
8/16/2009 0:20, 431.5, 327.100006, 763.599976, 895.099976, 689.099976
8/16/2009 0:30, 328.399994, 301.700012, 824, 1037.099976, 955.299988
8/16/2009 0:40, 261.5, 332.200012, 811.700012, 962.200012, 915.599976
8/16/2009 0:50, 180.300003, 291.100006, 700.099976, 855.200012, 836.900024
8/16/2009 1:00, 294.399994, 281.399994, 731.299988, 881.700012, 666.200012
8/16/2009 1:10, 274.899994, 334.200012, 759.400024, 913.900024, 760.799988
我想重拍文件1,如下所示:
8/16/2009 0:00, 516.900024, 450.5, 465.200012, 546.799988, 539.700012
8/16/2009 0:10, 351.200012, 398.899994, 418.100006, 510.299988, 518.5
8/16/2009 0:20, ,,,,
8/16/2009 0:30, 241.399994, 252.399994, 256, 360.600006, 386.5
8/16/2009 0:40, ,,,,
8/16/2009 0:50, ,,,,
8/16/2009 1:00, 184.199997, 154.300003, 143.899994, 236.600006, 244.399994
8/16/2009 1:10, ,,,,
有没有办法做到THI S'它会帮助我很多,因为我试图根据时间戳来链接2个文件。
P.S:我想使用MATLAB中的ismember功能时遇到的各种问题。
2009-10-30
AP.
+0
没有人的帮助? –
2009-10-31 02:56:48