MATLAB: Trouble finding text in cellarrays that are class “cell”

MATLAB: Trouble finding text in cellarrays that are class “cell”

cellarraycellfun

I have lists of text in a cell array. If I type class(cellarray(1)) the output is ‘cell’. I’m trying to find specific text in this array and am having to use long cellfun code to do so. char(cellarray), cellstr(cellarray) and strcmp(cellarray), don’t work (Error is “Cell elements must be character arrays.”.
Thanks!

Best Answer

  • Add a Comment

    Your email address will not be published. Required fields are marked *