I have an array of cells B
. I want to find if one of the cell contains a certain value, in this case [1 1 1440 1920]
, and if so remove it.
I tried using:
ismember(mat2cell([1 1 1440 1920],1),B)
I got an error saying "Input A of class cell and input B of class cell must be cell arrays of character vectors".
I thought that mat2cell()
would give me a cell array. What am I doing wrong?
Is there an easier way to find this component if exist and remove it?