3 | | I have identified the following problem: The use of the logarithm function is not straight forward. In HL, Math.Log is used and for a nonpositive number this function returns n.def.; in MATLAB, the log of a negative number is a complex number. We would therefore have to check if the argument is positive or not. I have not yet found a way to solve this, since I have not (yet) found something like the "?" operator we know from C++/C#, e.g. |
| 3 | I have identified the following problem: The use of the logarithm function is not straight forward. In HL, Math.Log is used and for a nonpositive number this function returns n.def.; in MATLAB, the log of a negative number is a complex number. If the logarithm of a negative number is the condition of a IF node, then we interpret this as false in HL (because (n.def.>0)==false), and in MATLAB the interpretation is true (because a complex number is not equal to 0). |
| 4 | We would therefore have to check if the argument is positive or not. I have not yet found a way to solve this, since I have not (yet) found something like the "?" operator we know from C++/C#, e.g. |