フィルターのクリア

Logical Matrix Indexing - Simulink

2 ビュー (過去 30 日間)
rupprechtt
rupprechtt 2017 年 8 月 8 日
コメント済み: rupprechtt 2017 年 8 月 8 日
I want to set all values bigger than one to 255. Matlab Code would be easily A(A>1) = 255;
But which Simulink blocks can I use to do this? Thank you!

採用された回答

AbhimanyuSingh
AbhimanyuSingh 2017 年 8 月 8 日
You Can use the Switch Block present in the /Simulink/Signal Routing/Switch In block properties you can select the 'Threshold' property value as 1 and 'Criteria for passing input' as "u2>Threshold", as shown in the attached image:
  1 件のコメント
rupprechtt
rupprechtt 2017 年 8 月 8 日
Great! Thanks a lot!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by