Identify interval completion by strings
Afficher commentaires plus anciens
I have an array of strings representing various intervals from human-entered data. E.g.,
startA
startB
on
endA
off
endB
...
I need to ensure each unique start is followed by its unique stop, not containing another unique start within that interval or vice versa for ends. If this does occur, I need to return the indices of the previous and following string, e.g. (startA -> missing end -> startA, return both startAs). I'm struggling to find an eluquent solution for this.
Réponses (1)
Image Analyst
le 11 Déc 2021
0 votes
Try using strfind() or contains() or ismember() to identify indexes where specific words occur.
3 commentaires
Image Analyst
le 13 Déc 2021
Attach the file with the words in it. I think you need to use readcell() on that file to import those words into a cell array.
TF Lew
le 18 Déc 2021
Catégories
En savoir plus sur Data Type Identification 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!