フィルターのクリア

Add threshold line to simulink plot

2 ビュー (過去 30 日間)
Meghan Kazanski
Meghan Kazanski 2017 年 5 月 1 日
回答済み: Soumya Saxena 2017 年 5 月 5 日
I am using Simulink to display EMG data, but would like to also include a threshold line on all real-time plots. How can this be achieved?
Thank you!

回答 (1 件)

Soumya Saxena
Soumya Saxena 2017 年 5 月 5 日
I understand that you would like to include a threshold line on real time plots. If you are using a scope and want to add a line at a given value, you can pass a constant value in to the scope. You can just add an extra input to the scope block and use a constant block's output to plot that threshold
<https://www.mathworks.com/help/simulink/slref/scope.html>
I am attaching a file "plotThreshold.mdl" . The blocks on the left show how to add threshold lines. If you are using Simulink Real-Time, the commented out block on the right shows a simple version.

カテゴリ

Help Center および File ExchangeScopes and Data Logging についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by