clear; clc;

stocks = {'2330', [],'2891'};
cellfun(@isempty, stocks)

output = false(size(stocks));
for i = 1 : length(stocks)
    curr_stock = stocks{i};
    output(i) = isempty(curr_stock);
end
output