Effacer les filtres
Effacer les filtres

Logical Matrix Indexing - Simulink

2 vues (au cours des 30 derniers jours)
rupprechtt
rupprechtt le 8 Août 2017
Commenté : rupprechtt le 8 Août 2017
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!

Réponse acceptée

AbhimanyuSingh
AbhimanyuSingh le 8 Août 2017
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 commentaire
rupprechtt
rupprechtt le 8 Août 2017
Great! Thanks a lot!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Computer Vision with Simulink dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by