Skip to main content
Best answer by Werner_E

Here is the file with Richards suggestion of how to use your function along with an alternative approach using a function which returns simple the maximum of 3 scalars and then is called vectorized with the vectors as arguments. This function could also be used in the way you tried using the range i.

Regards

Werner

4 replies

19-Tanzanite
June 9, 2016

Your for loop starts at 0 and you have ORIGIN set to 1.

dsochor1-VisitorAuthor
1-Visitor
June 9, 2016

Thank you Richard; that is a good catch. No dice though.

19-Tanzanite
June 9, 2016

You should be passing vectors to the function. If you pass, for example, l.dh[i,2, you are passing a scalar value