필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
Vaishnavi Sivakumar
Vaishnavi Sivakumar 2014년 3월 12일
답변: Sagar Damle 2014년 3월 12일
I need the code to save values in a structure and compare two structure

답변 (1개)

Sagar Damle
Sagar Damle 2014년 3월 12일
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)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by