Делает ли это то, что вам нужно?
>> a = {'AAPL', 1; 'MSFT', 0; 'GOOG' 1; 'IBM', 0} % Make some data like the OP's
a =
'AAPL' [1]
'MSFT' [0]
'GOOG' [1]
'IBM' [0]
>> toDelete = cell2mat(a(:,2)) == 1; % Extract which rows have a 1 in column 2
>> a(toDelete,:) = []; % Delete those rows
>> remainingTickers = a(:,1) % Extract column 1 from the remaining rows
remainingTickers =
'MSFT'
'IBM'