rearranging the data in separate columns when difference of 10 is found in vector
Ältere Kommentare anzeigen
I have data like: 1,2,3,4,5,7,8,11,13,14,15,17,18,19,21,23,24,25...36..,
Here, I would like to divide this series into columns as soon as the difference of ten from the initial number is found in the vector. I.e: Column one will contain, 1,2,3,4,5,7,8,11 and Column 2 will 13,14,15,17,18,19,21,23,24 and third column the values from 25...36 and so forth.
Any hints or example code would be highly helpful.
Akzeptierte Antwort
Weitere Antworten (1)
DJ_LAB
am 6 Feb. 2012
0 Stimmen
Kategorien
Mehr zu Shifting and Sorting Matrices finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!