bergercookie
bergercookie

Reputation: 2770

Test if 2 transfer functions are the same in Matlab

Suppose that I have two transfer functions (or two matrices of transfer functions in the more general case). How do I test if these are the same (equal)?

>> G1 = 1/(s*(s-1));
>> G2 = 1/(s*(s-1));
>> G1 == G2 % won't work..

Upvotes: 1

Views: 495

Answers (1)

siliconwafer
siliconwafer

Reputation: 732

To test if two of anything are equal:

isequal(a,b)

Upvotes: 7

Related Questions