Transport delay block numerical problem
1 回表示 (過去 30 日間)
古いコメントを表示
I have a Simulink model which contains a Transport Delay block that is being fed with a constant value when it causes the following issue:
While running, the Transport Delay block introduces an xe-16 difference between the input and output signals.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/236435/image.jpeg)
This difference is then captured by a downstream Relational Operator block which compares the input and output of the Transport Delay block.
Any ideas why this might happen?
0 件のコメント
回答 (1 件)
Osama Khallouf
2019 年 8 月 30 日
I ran into a similar problem a while ago and could not figure out the reason behind. Nevertheless, I tried this and it worked.
I am assuming that the Relational Operator compares the signal you are displaying (out - in) with zero. Change that into comparing the absolute value of (out - in) to a specified value of error (1e-15 for example), so it will behave as there is no difference between the 2 signals as long as the absolute difference is less than that specified value.
Hope you find this helpful.
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!