Parsing a data set into multiple arrays based on value?
Afficher commentaires plus anciens
Sorry I'm pretty new to matlab but...
I have a 1726x1 set of data that I would like to split into different variables. There should be 63 total variables and to find each variable I'd like to scan the original data set, once the value is larger than say 1000 I'd like to move that value and every value after it until the value drops below 1000 into a new variable. So if I have:
[10 100 1000 1005 11111000 55000 999 10 10000 10000 5000 6666 24]
I'd like it to split into 2 variables with
[1000 1005 11111000 55000 999] and
[10000 10000 5000 6666].
It should move through the whole data set and make 63 total variables when the values are larger than say 3000. Can anyone help?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Multidimensional Arrays dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!