MATLAB Answers

how can i fix this error?

1 view (last 30 days)
Mira le
Mira le on 30 Oct 2019
Commented: Mira le on 30 Oct 2019
"Undefined operator '==' for input arguments of type 'cell'."
this error appear when I want to compare the similarity between two element in cell like that:
for j=1:numel(S)
if S{p}==S{j}
Mira le
Mira le on 30 Oct 2019
thank you it works, the execution become low

Sign in to comment.

Accepted Answer

Sai Bhargav Avula
Sai Bhargav Avula on 30 Oct 2019
Hi, One way is by using isequal function.
For Example
if isequal(S{p},S{j})

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by