How to seperate similar data stacked up in one coulmn into multiple columns
Show older comments
Hello,
I have two Cloumns of data which have number. Floating point integers just as below.
Column 1 (Torque)= [1.5555;2.6666;3.555....................];
Column 2 (displacement) = [1.2544,-25666,12.6655................];
Both are of same size. But these coulmn's have multiple iterations stacked up together. I mean Measurement of the certain process has been repeated multiple times and the data of the these repetations was acquired as one run. My question
Q) How do i compare values within the same column and seperate when the first measurement was done and next measurement begins (Sweep). And its corresponding Column 2 values and write it into a seperate coulmn.
Important info: so when the first iteration is performed lets say we get 20 data points. Now the 21st data point is when the 2nd iteration begin but the problem is both Column 1(Torque) and Column 2 (Displacement) data would not be exactly same they could differ upto 1 - 10% fromt the first data point. How could i automate my seperation and write the 2,3rd.... into new columns with there seperate headers. Have attached data file if looking at the data helps you suggest better.
Thanks
Anand
3 Comments
dpb
on 11 Dec 2018
Well, lacking a time vector, you'll have to have some way in which you can determine when started over...is this a repeated sweep, hopefully? How about attaching a data file for somebody to look at--with just a general description it would be very difficult to know what might work well (altho the simplest would be to simply find the locations of the sizable negative jumps in the torque vector given the assumption it is the independent variable under control).
Sai Gudlur
on 11 Dec 2018
Edited: per isakson
on 11 Dec 2018
dpb
on 11 Dec 2018
I was presuming the data acq could have a retrigger function that could timestamp from the triggers...if it's just a continuous time from first, then it would be of no real use for the purpose, granted.
Accepted Answer
More Answers (1)
Sai Gudlur
on 11 Dec 2018
0 votes
Categories
Find more on Time Series Events in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!