Logical Matrix Indexing - Simulink

1 visualización (últimos 30 días)
rupprechtt
rupprechtt el 8 de Ag. de 2017
Comentada: rupprechtt el 8 de Ag. de 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!

Respuesta aceptada

AbhimanyuSingh
AbhimanyuSingh el 8 de Ag. de 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:

Más respuestas (0)

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by