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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Error on table look-up

BG_9641770
11-Garnet

Error on table look-up

Hi guys i am having a error when trying to find a Phi value between two types;

 

essentially if Srtype is "cohesive" for that layer of ground then Phi should be = to 0 deg. Else read from the value from the table for the following increments and so on......

 

sheet is attached, 

 

thank you and help would be appreciated 

BG_9641770_0-1660580969782.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

The highest value in L.v2 is 8.5 m

idx runs from 0 to 34 and  for idx from 21 up the corresponding value in z.b is greater than 8.5 and so no matching (greater or equal) value in L.v2 can be found and this is exactly the error message you get.

Werner_E_0-1660594830016.png

 

Furthemore ... Sr.type is vector with four string elements. This whole vector never can be equal to the the single string "cohesive". So the comparison

if Sr.type="cohesive"

will always fail and the else branch is executed.

 

View solution in original post

2 REPLIES 2

The highest value in L.v2 is 8.5 m

idx runs from 0 to 34 and  for idx from 21 up the corresponding value in z.b is greater than 8.5 and so no matching (greater or equal) value in L.v2 can be found and this is exactly the error message you get.

Werner_E_0-1660594830016.png

 

Furthemore ... Sr.type is vector with four string elements. This whole vector never can be equal to the the single string "cohesive". So the comparison

if Sr.type="cohesive"

will always fail and the else branch is executed.

 

Understand, thanks Werner_E

Top Tags