Absolute value of a difference in Simulink if block

2 Ansichten (letzte 30 Tage)
Sarah
Sarah am 14 Aug. 2017
Beantwortet: Jacob Ziesenis am 14 Aug. 2017
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?

Antworten (1)

Jacob Ziesenis
Jacob Ziesenis am 14 Aug. 2017
I am not sure what exactly you mean with an if-Block, but i would solve that problem in the following way:

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by