"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}
S{j}={};
end
end
Thanks

2 comentarios

langrg
langrg el 30 de Oct. de 2019
Hi,
You can replace:
if S{p}==S{j}
by :
if isequal(S{p}, S{j})
Mira le
Mira le el 30 de Oct. de 2019
thank you it works, the execution become low

Iniciar sesión para comentar.

 Respuesta aceptada

Sai Bhargav Avula
Sai Bhargav Avula el 30 de Oct. de 2019

1 voto

Hi, One way is by using isequal function.
For Example
if isequal(S{p},S{j})

Más respuestas (0)

Categorías

Más información sobre Data Types en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 30 de Oct. de 2019

Comentada:

el 30 de Oct. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by