发表于:2007/5/31 14:33:00
#0楼
我在两个txt文档中保存了两组从传感器采过来的数据其中一组是这样的两列:
0 0.43579
0.1251 0.45654
0.2502 0.47729
0.3753 0.52612
0.5004 0.54565
0.6255 0.58227
0.7506 0.61889
0.8757 0.64331
1.0008 0.67504
1.1259 0.6665
1.251 0.68603
1.3761 0.68725
1.5012 0.67382
1.6263 0.67627
1.7514 0.7019
1.8765 0.71533
2.0016 0.72143
2.1267 0.74951
2.2518 0.74707
2.3769 0.76416
2.502 0.75561
2.6271 0.74707
2.7522 0.7434
2.8773 0.72998
3.0024 0.74585
3.1275 0.76049
3.2526 0.78369
3.3777 0.80078
3.5028 0.80444
3.6279 0.82153
3.753 0.8081
3.8781 0.79467
4.0032 0.78979
4.1283 0.79101
4.2534 0.80322
4.3785 0.81787
4.5036 0.84472
4.6287 0.85937
4.7538 0.8728
4.8789 0.8728
5.004 0.86669
5.1291 0.86669
5.2542 0.86303
5.3793 0.86059
5.5044 0.87524
5.6295 0.89355
5.7546 0.91064
5.8797 0.93505
6.0048 0.95092
6.1299 0.95825
6.255 0.96313
6.3801 0.95581
6.5052 0.94848
6.6303 0.94482
6.7554 0.95703
6.8805 0.98388
7.0056 1.00219
7.1307 1.02417
7.2558 1.03759
7.3809 1.05957
7.506 1.06201
7.6311 1.0559
7.7562 1.05224
7.8813 1.06567
8.0064 1.05835
8.1315 1.08398
8.2566 1.09619
8.3817 1.12915
8.5068 1.14502
8.6319 1.16333
8.757 1.16333
8.8821 1.1621
9.0072 1.15234
9.1323 1.1499
9.2574 1.16821
9.3825 1.17431
9.5076 1.21704
9.6327 1.2146
9.7578 1.25122
9.8829 1.24755
10.008 1.26098
10.1331 1.25854
10.2582 1.23535
10.3833 1.23901
10.5084 1.23168
10.6335 1.29272
10.7586 1.25122
10.8837 1.29638
11.0088 1.29882
11.1339 1.31958
11.259 1.31591
11.3841 1.30737
11.5092 1.31347
11.6343 1.30371
11.7594 1.30859
11.8845 1.30981
12.0096 1.34033
12.1347 1.35131
12.2598 1.37695
12.3849 1.36352
12.51 1.3684
12.6351 1.36352
12.7602 1.34155
12.8853 1.33178
13.0104 1.31103
13.1355 1.31225
13.2606 1.31713
13.3857 1.31347
13.5108 1.31347
13.6359 1.31103
13.761 1.29882
13.8861 1.27441
14.0112 1.23046
14.1363 1.18896
14.2614 1.156
14.3865 1.13281
14.5116 1.10107
14.6367 1.07055
14.7618 1.0437
14.8869 0.99853
15.012 0.94116
15.1371 0.88134
15.2622 0.79467
15.3873 0.69946
15.5124 0.63354
15.6375 0.55297
15.7626 0.47241
15.8877 0.39184
16.0128 0.3125
16.1379 0.21362
16.263 0.11474
16.3881 0.00976
16.5132 -0.11108
16.6383 -0.22583
16.7634 -0.35644
16.8885 -0.46752
17.0136 -0.58105
17.1387 -0.68847
17.2638 -0.78613
17.3889 -0.88256
17.514 -0.99243
17.6391 -1.10473
17.7642 -1.20361
17.8893 -1.30249
18.0144 -1.39648
18.1395 -1.49047
18.2646 -1.55639
18.3897 -1.62353
18.5148 -1.67846
18.6399 -1.73584
18.765 -1.69189
18.8901 -1.8457
19.0152 -1.90551
19.1403 -1.96289
19.2654 -2.03125
19.3905 -2.06298
19.5156 -2.14965
19.6407 -2.15087
19.7658 -2.23022
19.8909 -2.26806
20.016 -2.31323
20.1411 -2.38403
20.2662 -2.41943
20.3913 -2.47192
20.5164 -2.5
20.6415 -2.5
20.7666 -2.5
20.8917 -2.5
21.0168 -2.5
21.1419 -2.5
21.267 -2.5
21.3921 -2.5
21.5172 -2.5
21.6423 -2.5
21.7674 -2.5
21.8925 -2.5
22.0176 -2.5
22.1427 -2.5
22.2678 -2.5
22.3929 -2.5
22.518 -2.5
22.6431 -2.5
22.7682 -2.47924
22.8933 -2.41943
23.0184 -2.3706
23.1435 -2.29736
23.2686 -2.21801
23.3937 -2.12524
23.5188 -2.03369
23.6439 -1.93359
23.769 -1.82128
23.8941 -1.71142
24.0192 -1.59912
。。。。。
其中左边一列是表时间的,右边一列是表幅值的。
还有一组也是类似的:
0 0.43579
0.1251 0.45654
0.2502 0.47729
0.3753 0.52612
0.5004 0.54565
0.6255 0.58227
0.7506 0.61889
0.8757 0.64331
1.0008 0.67504
1.1259 0.6665
1.251 0.68603
1.3761 0.68725
1.5012 0.67382
1.6263 0.67627
1.7514 0.7019
1.8765 0.71533
2.0016 0.72143
2.1267 0.74951
2.2518 0.74707
2.3769 0.76416
2.502 0.75561
2.6271 0.74707
2.7522 0.7434
2.8773 0.72998
3.0024 0.74585
3.1275 0.76049
3.2526 0.78369
3.3777 0.80078
3.5028 0.80444
3.6279 0.82153
3.753 0.8081
3.8781 0.79467
4.0032 0.78979
4.1283 0.79101
4.2534 0.80322
4.3785 0.81787
4.5036 0.84472
4.6287 0.85937
4.7538 0.8728
4.8789 0.8728
5.004 0.86669
5.1291 0.86669
5.2542 0.86303
5.3793 0.86059
5.5044 0.87524
5.6295 0.89355
5.7546 0.91064
5.8797 0.93505
6.0048 0.95092
6.1299 0.95825
6.255 0.96313
6.3801 0.95581
6.5052 0.94848
6.6303 0.94482
6.7554 0.95703
6.8805 0.98388
7.0056 1.00219
7.1307 1.02417
7.2558 1.03759
7.3809 1.05957
7.506 1.06201
7.6311 1.0559
7.7562 1.05224
7.8813 1.06567
8.0064 1.05835
8.1315 1.08398
8.2566 1.09619
8.3817 1.12915
8.5068 1.14502
8.6319 1.16333
8.757 1.16333
8.8821 1.1621
9.0072 1.15234
9.1323 1.1499
9.2574 1.16821
9.3825 1.17431
9.5076 1.21704
9.6327 1.2146
9.7578 1.25122
9.8829 1.24755
10.008 1.26098
10.1331 1.25854
10.2582 1.23535
10.3833 1.23901
10.5084 1.23168
10.6335 1.29272
10.7586 1.25122
10.8837 1.29638
11.0088 1.29882
11.1339 1.31958
11.259 1.31591
11.3841 1.30737
11.5092 1.31347
11.6343 1.30371
11.7594 1.30859
11.8845 1.30981
12.0096 1.34033
12.1347 1.35131
12.2598 1.37695
12.3849 1.36352
12.51 1.3684
12.6351 1.36352
12.7602 1.34155
12.8853 1.33178
13.0104 1.31103
13.1355 1.31225
13.2606 1.31713
13.3857 1.31347
13.5108 1.31347
13.6359 1.31103
13.761 1.29882
13.8861 1.27441
14.0112 1.23046
14.1363 1.18896
14.2614 1.156
14.3865 1.13281
14.5116 1.10107
14.6367 1.07055
14.7618 1.0437
14.8869 0.99853
15.012 0.94116
15.1371 0.88134
15.2622 0.79467
15.3873 0.69946
15.5124 0.63354
15.6375 0.55297
15.7626 0.47241
15.8877 0.39184
16.0128 0.3125
16.1379 0.21362
16.263 0.11474
16.3881 0.00976
16.5132 -0.11108
16.6383 -0.22583
16.7634 -0.35644
16.8885 -0.46752
17.0136 -0.58105
17.1387 -0.68847
17.2638 -0.78613
17.3889 -0.88256
17.514 -0.99243
17.6391 -1.10473
17.7642 -1.20361
17.8893 -1.30249
18.0144 -1.39648
18.1395 -1.49047
18.2646 -1.55639
18.3897 -1.62353
18.5148 -1.67846
18.6399 -1.73584
18.765 -1.69189
18.8901 -1.8457
19.0152 -1.90551
19.1403 -1.96289
19.2654 -2.03125
19.3905 -2.06298
19.5156 -2.14965
19.6407 -2.15087
19.7658 -2.23022
19.8909 -2.26806
20.016 -2.31323
20.1411 -2.38403
20.2662 -2.41943
20.3913 -2.47192
20.5164 -2.5
20.6415 -2.5
20.7666 -2.5
20.8917 -2.5
21.0168 -2.5
21.1419 -2.5
21.267 -2.5
21.3921 -2.5
21.5172 -2.5
21.6423 -2.5
21.7674 -2.5
21.8925 -2.5
22.0176 -2.5
22.1427 -2.5
22.2678 -2.5
22.3929 -2.5
22.518 -2.5
22.6431 -2.5
22.7682 -2.47924
22.8933 -2.41943
23.0184 -2.3706
23.1435 -2.29736
23.2686 -2.21801
23.3937 -2.12524
23.5188 -2.03369
23.6439 -1.93359
23.769 -1.82128
23.8941 -1.71142
24.0192 -1.59912
24.1443 -1.48925
24.2694 -1.37695
24.3945 -1.26098
24.5196 -1.13281
24.6447 -1.00708
24.7698 -0.87768
24.8949 -0.74462
25.02 -0.62377
25.1451 -0.5017
25.2702 -0.39062
25.3953 -0.29174
25.5204 -0.19409
25.6455 -0.11596
25.7706 -0.03173
25.8957 0.05004
。。。。
我的问题就是怎么给它在一个图中画出两条这两组数据连起来的曲线。
然后还要分别取得这两条曲线的极大值和对应的时间?
或许有点复杂哈!我是才学vb的,希望大家不吝赐教!先谢谢了!
0 0.43579
0.1251 0.45654
0.2502 0.47729
0.3753 0.52612
0.5004 0.54565
0.6255 0.58227
0.7506 0.61889
0.8757 0.64331
1.0008 0.67504
1.1259 0.6665
1.251 0.68603
1.3761 0.68725
1.5012 0.67382
1.6263 0.67627
1.7514 0.7019
1.8765 0.71533
2.0016 0.72143
2.1267 0.74951
2.2518 0.74707
2.3769 0.76416
2.502 0.75561
2.6271 0.74707
2.7522 0.7434
2.8773 0.72998
3.0024 0.74585
3.1275 0.76049
3.2526 0.78369
3.3777 0.80078
3.5028 0.80444
3.6279 0.82153
3.753 0.8081
3.8781 0.79467
4.0032 0.78979
4.1283 0.79101
4.2534 0.80322
4.3785 0.81787
4.5036 0.84472
4.6287 0.85937
4.7538 0.8728
4.8789 0.8728
5.004 0.86669
5.1291 0.86669
5.2542 0.86303
5.3793 0.86059
5.5044 0.87524
5.6295 0.89355
5.7546 0.91064
5.8797 0.93505
6.0048 0.95092
6.1299 0.95825
6.255 0.96313
6.3801 0.95581
6.5052 0.94848
6.6303 0.94482
6.7554 0.95703
6.8805 0.98388
7.0056 1.00219
7.1307 1.02417
7.2558 1.03759
7.3809 1.05957
7.506 1.06201
7.6311 1.0559
7.7562 1.05224
7.8813 1.06567
8.0064 1.05835
8.1315 1.08398
8.2566 1.09619
8.3817 1.12915
8.5068 1.14502
8.6319 1.16333
8.757 1.16333
8.8821 1.1621
9.0072 1.15234
9.1323 1.1499
9.2574 1.16821
9.3825 1.17431
9.5076 1.21704
9.6327 1.2146
9.7578 1.25122
9.8829 1.24755
10.008 1.26098
10.1331 1.25854
10.2582 1.23535
10.3833 1.23901
10.5084 1.23168
10.6335 1.29272
10.7586 1.25122
10.8837 1.29638
11.0088 1.29882
11.1339 1.31958
11.259 1.31591
11.3841 1.30737
11.5092 1.31347
11.6343 1.30371
11.7594 1.30859
11.8845 1.30981
12.0096 1.34033
12.1347 1.35131
12.2598 1.37695
12.3849 1.36352
12.51 1.3684
12.6351 1.36352
12.7602 1.34155
12.8853 1.33178
13.0104 1.31103
13.1355 1.31225
13.2606 1.31713
13.3857 1.31347
13.5108 1.31347
13.6359 1.31103
13.761 1.29882
13.8861 1.27441
14.0112 1.23046
14.1363 1.18896
14.2614 1.156
14.3865 1.13281
14.5116 1.10107
14.6367 1.07055
14.7618 1.0437
14.8869 0.99853
15.012 0.94116
15.1371 0.88134
15.2622 0.79467
15.3873 0.69946
15.5124 0.63354
15.6375 0.55297
15.7626 0.47241
15.8877 0.39184
16.0128 0.3125
16.1379 0.21362
16.263 0.11474
16.3881 0.00976
16.5132 -0.11108
16.6383 -0.22583
16.7634 -0.35644
16.8885 -0.46752
17.0136 -0.58105
17.1387 -0.68847
17.2638 -0.78613
17.3889 -0.88256
17.514 -0.99243
17.6391 -1.10473
17.7642 -1.20361
17.8893 -1.30249
18.0144 -1.39648
18.1395 -1.49047
18.2646 -1.55639
18.3897 -1.62353
18.5148 -1.67846
18.6399 -1.73584
18.765 -1.69189
18.8901 -1.8457
19.0152 -1.90551
19.1403 -1.96289
19.2654 -2.03125
19.3905 -2.06298
19.5156 -2.14965
19.6407 -2.15087
19.7658 -2.23022
19.8909 -2.26806
20.016 -2.31323
20.1411 -2.38403
20.2662 -2.41943
20.3913 -2.47192
20.5164 -2.5
20.6415 -2.5
20.7666 -2.5
20.8917 -2.5
21.0168 -2.5
21.1419 -2.5
21.267 -2.5
21.3921 -2.5
21.5172 -2.5
21.6423 -2.5
21.7674 -2.5
21.8925 -2.5
22.0176 -2.5
22.1427 -2.5
22.2678 -2.5
22.3929 -2.5
22.518 -2.5
22.6431 -2.5
22.7682 -2.47924
22.8933 -2.41943
23.0184 -2.3706
23.1435 -2.29736
23.2686 -2.21801
23.3937 -2.12524
23.5188 -2.03369
23.6439 -1.93359
23.769 -1.82128
23.8941 -1.71142
24.0192 -1.59912
。。。。。
其中左边一列是表时间的,右边一列是表幅值的。
还有一组也是类似的:
0 0.43579
0.1251 0.45654
0.2502 0.47729
0.3753 0.52612
0.5004 0.54565
0.6255 0.58227
0.7506 0.61889
0.8757 0.64331
1.0008 0.67504
1.1259 0.6665
1.251 0.68603
1.3761 0.68725
1.5012 0.67382
1.6263 0.67627
1.7514 0.7019
1.8765 0.71533
2.0016 0.72143
2.1267 0.74951
2.2518 0.74707
2.3769 0.76416
2.502 0.75561
2.6271 0.74707
2.7522 0.7434
2.8773 0.72998
3.0024 0.74585
3.1275 0.76049
3.2526 0.78369
3.3777 0.80078
3.5028 0.80444
3.6279 0.82153
3.753 0.8081
3.8781 0.79467
4.0032 0.78979
4.1283 0.79101
4.2534 0.80322
4.3785 0.81787
4.5036 0.84472
4.6287 0.85937
4.7538 0.8728
4.8789 0.8728
5.004 0.86669
5.1291 0.86669
5.2542 0.86303
5.3793 0.86059
5.5044 0.87524
5.6295 0.89355
5.7546 0.91064
5.8797 0.93505
6.0048 0.95092
6.1299 0.95825
6.255 0.96313
6.3801 0.95581
6.5052 0.94848
6.6303 0.94482
6.7554 0.95703
6.8805 0.98388
7.0056 1.00219
7.1307 1.02417
7.2558 1.03759
7.3809 1.05957
7.506 1.06201
7.6311 1.0559
7.7562 1.05224
7.8813 1.06567
8.0064 1.05835
8.1315 1.08398
8.2566 1.09619
8.3817 1.12915
8.5068 1.14502
8.6319 1.16333
8.757 1.16333
8.8821 1.1621
9.0072 1.15234
9.1323 1.1499
9.2574 1.16821
9.3825 1.17431
9.5076 1.21704
9.6327 1.2146
9.7578 1.25122
9.8829 1.24755
10.008 1.26098
10.1331 1.25854
10.2582 1.23535
10.3833 1.23901
10.5084 1.23168
10.6335 1.29272
10.7586 1.25122
10.8837 1.29638
11.0088 1.29882
11.1339 1.31958
11.259 1.31591
11.3841 1.30737
11.5092 1.31347
11.6343 1.30371
11.7594 1.30859
11.8845 1.30981
12.0096 1.34033
12.1347 1.35131
12.2598 1.37695
12.3849 1.36352
12.51 1.3684
12.6351 1.36352
12.7602 1.34155
12.8853 1.33178
13.0104 1.31103
13.1355 1.31225
13.2606 1.31713
13.3857 1.31347
13.5108 1.31347
13.6359 1.31103
13.761 1.29882
13.8861 1.27441
14.0112 1.23046
14.1363 1.18896
14.2614 1.156
14.3865 1.13281
14.5116 1.10107
14.6367 1.07055
14.7618 1.0437
14.8869 0.99853
15.012 0.94116
15.1371 0.88134
15.2622 0.79467
15.3873 0.69946
15.5124 0.63354
15.6375 0.55297
15.7626 0.47241
15.8877 0.39184
16.0128 0.3125
16.1379 0.21362
16.263 0.11474
16.3881 0.00976
16.5132 -0.11108
16.6383 -0.22583
16.7634 -0.35644
16.8885 -0.46752
17.0136 -0.58105
17.1387 -0.68847
17.2638 -0.78613
17.3889 -0.88256
17.514 -0.99243
17.6391 -1.10473
17.7642 -1.20361
17.8893 -1.30249
18.0144 -1.39648
18.1395 -1.49047
18.2646 -1.55639
18.3897 -1.62353
18.5148 -1.67846
18.6399 -1.73584
18.765 -1.69189
18.8901 -1.8457
19.0152 -1.90551
19.1403 -1.96289
19.2654 -2.03125
19.3905 -2.06298
19.5156 -2.14965
19.6407 -2.15087
19.7658 -2.23022
19.8909 -2.26806
20.016 -2.31323
20.1411 -2.38403
20.2662 -2.41943
20.3913 -2.47192
20.5164 -2.5
20.6415 -2.5
20.7666 -2.5
20.8917 -2.5
21.0168 -2.5
21.1419 -2.5
21.267 -2.5
21.3921 -2.5
21.5172 -2.5
21.6423 -2.5
21.7674 -2.5
21.8925 -2.5
22.0176 -2.5
22.1427 -2.5
22.2678 -2.5
22.3929 -2.5
22.518 -2.5
22.6431 -2.5
22.7682 -2.47924
22.8933 -2.41943
23.0184 -2.3706
23.1435 -2.29736
23.2686 -2.21801
23.3937 -2.12524
23.5188 -2.03369
23.6439 -1.93359
23.769 -1.82128
23.8941 -1.71142
24.0192 -1.59912
24.1443 -1.48925
24.2694 -1.37695
24.3945 -1.26098
24.5196 -1.13281
24.6447 -1.00708
24.7698 -0.87768
24.8949 -0.74462
25.02 -0.62377
25.1451 -0.5017
25.2702 -0.39062
25.3953 -0.29174
25.5204 -0.19409
25.6455 -0.11596
25.7706 -0.03173
25.8957 0.05004
。。。。
我的问题就是怎么给它在一个图中画出两条这两组数据连起来的曲线。
然后还要分别取得这两条曲线的极大值和对应的时间?
或许有点复杂哈!我是才学vb的,希望大家不吝赐教!先谢谢了!