I have a numeric array sized 1000x1 which have values 0 and 1, called conditionArray
.
I have a cell array called netNames
with the same size (1000x1) and its cells contain string values (which are name of some circuit nets).
I want to extract net names which from netNames
which their pairwise condition bit is 1 in conditionArray
.
E.g. if conditionArray(100) is equal to extract its net name from netNames{100}
.
Output of this process can be stored in an string array or cell array.
Are there any ways to do this operation with pairwise operations or I should use a for
statement for this?
[mcve]
: minimal reproducible example – Ander BigurinetNames(conditionArray)
not work? – Wolfie