In my Simulink sheet, I have a Fcn block which does a very simple calculation from its input:
Since the input can sometimes assume (unphysical) negative values, I wanted to exlude them:
But as soon as I call the simulation, I get
The expression: max(0, u(36)/u(38)*u(39))
has a syntax error
So does that mean that max is undefined inside Fcn blocks? If so, what could I use instead?