sam
sam

Reputation: 359

Avoid infinity in division in signals in Matlab Simulink?

When dividing two sinusoidal signals in matlab simulink, It can result in an infinite or large output. This may be avoided using saturation tool box but it seems to be an inefficient method. Is there a way out of this?

Thanks in advance!

Upvotes: 1

Views: 2225

Answers (1)

patrik
patrik

Reputation: 4558

The signal in the denominator can be set to non-zero by adding a small number to it before the division. This number can for example be obtained by using the eps function.

Upvotes: 3

Related Questions