How do I remove the brackets from the numeric values around the zeros, so that only the numeric values are left and I am able to use boolean logic to get a solution ( 1 or 0)?
Afficher commentaires plus anciens
"( (1) | (0) )"
"(0)"
"( (0) | (1) | (0) )"
"( (0) | (0) )"
"( (1) | (0) )"
""
"(0)"
"( (0) & (1) & (0) )"
"(1)"
"( (0) | (0) | (0) )"
""
"(( (0) & (0) & (1) & (0) & (0) & (1) & (0) & (0) ) | ( (0) & (0) & (0) & (1) & (0) & (0) & (1) & (0) & (0) ))"
""
3 commentaires
the cyclist
le 14 Nov 2019
Can you upload a file with actual data in it, that is storing your input? That will be much more efficient than us asking you questions about what you really mean. (For example, are those string arrays? Or a cell array that has strings? Or a cell array that has characters arrays? Etc.)
A small example of the input, and expect output (even if you cannot write the algorithm that takes you from one to the other) is very helpful.
Daniel M
le 14 Nov 2019
I agree. The format is strange. I doubt you really have a comma separated list of strings like that.
Michael Tross
le 15 Nov 2019
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Structures 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!