概述
大家好,想问大家一个关于间隔取值的问题。我想每隔0.5取数据中的值,并且求在这0.5区间内的平均值。
比如我想首先取29.9637422423955,29.8369314249016,29.7114384855687,29.5827110234418这四个数字为一组,然后求他的平均值,得到一个值,然后再做下一个0.5区间的平均值计算。请问大家该怎么做呢?谢谢了!!
数据如下:
29.9637422423955
29.8369314249016
29.7114384855687
29.5827110234418
29.4561485278515
29.3329475781513
29.2027381531742
29.0764490468203
28.9561388457877
28.8218764987760
28.6958094802719
28.5803089984078
28.4422961221201
28.3164947859407
28.2059047349483
28.0626321324192
27.9383084945991
27.8316911456230
27.6893827854511
27.5642908065423
27.4393216999070
27.2672104818122
27.1285261051760
27.0025450363335
26.8766405383317
26.7508135922380
26.6250779202624
26.4994554804877
26.3739707868646
26.2172767277812
26.0839156216551
25.9586217990237
25.8335718674273
25.6956193010718
25.5711202793926
25.4469535064072
25.3132632904991
25.1897833992171
25.0666659981456
24.9348178123328
24.8124623952671
24.6819359667165
24.5604196086097
24.4393526101610
24.3108130192491
24.1907821034236
24.0713405994926
23.9455905087055
23.8274542936577
23.7100587098695
23.5870606480343
23.4714679554209
23.3512525421956
23.2379482623289
23.1259010856548
23.0099928121006
22.9007369952628
22.7930267336862
22.6827693373813
22.5785796633084
22.4762136151405
22.3717646326649
22.2731348055633
22.1763822916175
22.0764892809013
21.9835106492312
21.8924088374359
21.7995262042896
21.7121845038385
21.6267218478177
21.5406873434670
21.4590240738216
21.3792536994405
21.2991672549267
21.2234164349300
21.1496818025216
21.0779808902216
21.0054245622562
20.9377102879457
20.8719351469177
20.8080770070217
20.7432623178966
20.6831629600915
20.6248887554297
20.5684456239565
20.5107443232611
20.4579719818300
20.4073807842373
20.3590000586472
20.3126444476064
20.2683198240946
20.2227490294497
20.1820583073489
20.1434380129549
20.1069070388022
20.0724842774254
20.0401886213589
20.0100389631374
19.9787392147200
19.9529281062133
19.9294857614529
最后
以上就是粗犷星月为你收集整理的Matlab隔几个选一个值,关于间隔取值的问题的全部内容,希望文章能够帮你解决Matlab隔几个选一个值,关于间隔取值的问题所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复