I have an array of structures, each structure with fields ‘input’ and ‘output’. Input values are binary arrays, output values are integers.
Let’s say I have a specific binary array, for example A = [0 1 1 0 1 0]. How do I find the element in my array that has value in input field equal to A?
I have an array of structures, each structure with fields ‘input’ and ‘output’. Input
Share
You could use ARRAYFUN
Call FIND on
logicalIndexOfElementto get the linear indices of the elements inyourStructure.