isequal fails with equal structs
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur App Building dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!