isequal fails with equal structs

v(1).a{1}=sparse(magic(3)+2i*magic(3));
v(2).a{2}={struct('FA',{'a','bb'},'FB',{magic(5),{}})};
v(2).b{2}=@(x) sind(x);
n(1).a{1}=sparse(magic(3)+2i*magic(3));
n(2).a{2}={struct('FA',{'a','bb'},'FB',{magic(5),{}})};
n(2).b{2}=@(x) sind(x);
isequal(v,n) % 0
n = v;
isequal(v,n) % 1
Am I missing something?
R2010b 32bit Vista32

 Respuesta aceptada

Matt Fig
Matt Fig el 16 de Mzo. de 2011

2 votos

isequal(@(x) sin(x),@(x) sin(x))

1 comentario

Oleg Komarov
Oleg Komarov el 16 de Mzo. de 2011
Thanks Matt,
now I remember: http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/cd902403404ac638/82c9ddaa25a8bc71?lnk=gst&q=isequal+handles#82c9ddaa25a8bc71
I'll remove the bug tag.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre App Building en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 16 de Mzo. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by