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)?
Show older comments
"( (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 Comments
the cyclist
on 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
on 14 Nov 2019
I agree. The format is strange. I doubt you really have a comma separated list of strings like that.
Michael Tross
on 15 Nov 2019
Accepted Answer
More Answers (0)
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!