Hello, I have a 1×3 cell array:
str = strings(6,1)str(1) = 'A'str(2) = 'B'str(3) = 'A'str(4) = 'B'str(5) = 'A'str(6) = 'B'str2 = strings(6,1)str(1) = 'r'str(2) = 'r'str(3) = 't'str(4) = 's'str(5) = 't'str(6) = 'm'a = [345; 344; 234; 234; 235; 231]CA{1} = strCA{2} = str2CA{3} = a
My task is to extract certain values of the third cell vector based on some conditions pertaining to the first two cell vectors, e.g.: If cellvector1 = 'A' AND cellvector2 = 't' –> what is the corresponding value in cellvector 3? (so in this case 234 and 235)
Thank you very much in advance!
Best Answer