Skip to main content
Werner_E
Werner_EAnswer
25-Diamond I

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

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

Translate
dsochor1-VisitorAuthor
1-Visitor

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

Translate
19-Tanzanite

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

Translate