Effacer les filtres
Effacer les filtres

how to store the float values in a structure and compare the structure

2 vues (au cours des 30 derniers jours)
Vaishnavi Sivakumar
Vaishnavi Sivakumar le 12 Mar 2014
I need the code to save values in a structure and compare two structure

Réponses (1)

Sagar Damle
Sagar Damle le 12 Mar 2014
I think this code can help you.
a.name = 'QWERTY';
a.age = 20;
a.weight = 50.340;
b.name = 'QWERTY';
b.age = 20;
b.weight = 50.340;
c.name = 'QWERTY';
c.age = 20;
c.weight = 50.440;
isequal(a,b)
isequal(a,c)
a.weight == b.weight
a.weight == c.weight
isequal(a.weight,b.weight)
isequal(a.weight,c.weight)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by