Moving Data Points in Data Set

1 回表示 (過去 30 日間)
Chad Wiggins
Chad Wiggins 2016 年 4 月 4 日
I have attached some sample data. I need help with some code to move the values in column 6. The values in column 1 are time(seconds), 2-5 are measured variables from a data acquisition device, and 6 is a manually placed marker in the data. How I currently treat this data is that I do a 3 second moving average for the entire data set, and then have my program pick the first value of each second.
The help I need, is moving the markers (column 6) to the data point corresponding to the first point of that second. I run further analysis on a set of data that includes the moving average data that is filtered to 1hz, but I still need markers to remain in my new data.
Data= [127 75.9 53.9 17.11 71.01 0 127.3 77 55.67 16.61 72.27 0 127.5 75.7 54.19 17.38 71.57 0 127.8 74.4 53.18 18.34 71.52 0 128 75.9 54.75 17.37 72.12 1 128.2 77.4 56.62 16.49 73.11 0 128.5 77.3 55.68 16.35 72.03 0 128.7 76.8 54.48 16.45 70.93 0 129 76.9 56.71 17.05 73.75 0 129.2 76.1 54.85 17.27 72.12 0 129.5 74.6 52.81 17.99 70.79 0 129.7 75.2 52.62 17.4 70.02 0 129.9 78.1 56.86 15.95 72.81 0 130.2 77.1 55.57 16.51 72.08 0 130.4 76.4 54.99 16.99 71.98 0 130.7 75.5 53.15 17.28 70.43 0 130.9 73.9 51.93 18.36 70.28 0 131.1 74.8 52.4 17.62 70.02 0 131.4 77.1 55.72 16.52 72.25 0 131.6 77.3 55.77 16.37 72.14 2 131.9 76.1 55.05 17.29 72.35 0 132.1 77.2 55.24 16.36 71.6 0];

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Acquisition Toolbox Supported Hardware についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by