Main Content

ispropequal

Determine whether properties of two fi objects are equal

Description

tf = ispropequal(a,b) returns 1 (true) if a and b are both fi objects and have the same properties. Otherwise, it returns 0 (false).

example

Examples

collapse all

Create two fi objects and determine whether they have the same properties.

F = fimath;

a = fi(pi);
b = fi(pi,F);
c = fi(pi/2,F);
d = fi(pi/2,0);

tf = ispropequal(a,b)
tf = logical
   1

tf = ispropequal(b,c)
tf = logical
   0

tf = ispropequal(c,d)
tf = logical
   0

Input Arguments

collapse all

Inputs to be compared, specified as arrays.

Data Types: fi

Tips

To compare the real-world values of two fi objects a and b, use a == b or isequal(a,b).

Version History

Introduced before R2006a

See Also

|