Hi,
I have a function that is defined by different equations, based on an "if" statement. both the equations and the conditions depend on coefficients stored in vectors. I expect, as a result, a function that returns a vector.
I have tried several syntaxes, but I can't find one that works. Either i don't put the index, and the condition fails (comparing a scalar to a vector), or I put the index and the function fails to find a result (although, if I set the function parameter as a fixed variable, the content of the function is evaluated correctly).
Is there a proper syntax to get it to work ?
Thank you very much.