![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177801/image.png)
Absolute value of a difference in Simulink if block
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am trying to use the following inequality in my if block, which has two inputs: (u1 > 37) & (abs(u1 - u2) <= 1) However, I keep getting syntax errors. What is the correct way to write the absolute value in the Simulink if block?
0 comentarios
Respuestas (1)
Jacob Ziesenis
el 14 de Ag. de 2017
I am not sure what exactly you mean with an if-Block, but i would solve that problem in the following way:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177801/image.png)
0 comentarios
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!