cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

read the value

YA_10963798
14-Alexandrite

read the value

I used this function to specify which matric is the longest , which is c in row 3 >> this is  correct 

YA_10963798_2-1733315260003.png

 

YA_10963798_1-1733315189500.png

 

Now I need it to read the bigest number in matric c which is 78 >>> what function should I use and can it be written with the same g function I used ?

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:YA_10963798)

How about

Werner_E_0-1733317042446.png

Note that both indices are vector indices. 1 because you have set ORIGIN to 1.

 

You could also do it in one go (at the cost of readability)

Werner_E_0-1733318924007.png

 

In case two or more of the vectors in L have the same maximal length, this approach will give you just the highest value in the first one of them and not the overall highest value which would be 312 in the example below.

Werner_E_1-1733317403218.png

If this is an issue you could use

Werner_E_2-1733317831509.png

 

 

 

View solution in original post

2 REPLIES 2
Werner_E
25-Diamond I
(To:YA_10963798)

How about

Werner_E_0-1733317042446.png

Note that both indices are vector indices. 1 because you have set ORIGIN to 1.

 

You could also do it in one go (at the cost of readability)

Werner_E_0-1733318924007.png

 

In case two or more of the vectors in L have the same maximal length, this approach will give you just the highest value in the first one of them and not the overall highest value which would be 312 in the example below.

Werner_E_1-1733317403218.png

If this is an issue you could use

Werner_E_2-1733317831509.png

 

 

 

YA_10963798
14-Alexandrite
(To:Werner_E)

Thank you king 

Announcements

Top Tags