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)?
Mostra commenti meno recenti
"( (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 Commenti
the cyclist
il 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
il 14 Nov 2019
I agree. The format is strange. I doubt you really have a comma separated list of strings like that.
Michael Tross
il 15 Nov 2019
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Structures in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!