In MATLAB, say I have a cell array as follows:
cell_arr = {{'a', 'b', 'c'}, {'d', 'e', 'f', 'g', 'h'}, {'a', 'b', 'c'}};
I want a way to find all locations in the cell array where e.g., 'a' occurs. So something like
where(cell_arr, 'a'); % returns e.g., [[1 1] ; [3 1]]
How can I do this?
Thanks for any help.