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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Range return value

BG_9641770
12-Amethyst

Range return value

Hi guys Im getting this error below when looking at range of values in a table and trying to match the relevant density.

 

BG_9641770_0-1645031642239.png

 Sheet is attached, thanks guys 

 

🙂

ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:BG_9641770)

The error message is clear: linterp requires that the first argument is a vector with values in ascending order. Your vector Lv2 has values 1, 2, 4, 7, 0 and 0.

The first four values are ascending (every next value is higher than the previous), but the fifth and sixth are 0, that is less than 7.

Considering you have empty or zero values in that part of the table that you draw Lv2 from, I suggest you cut the bottom two lines (for layers 5 and 6) from the table. Then it should work.

Note that the result of the function is not 18, but 17.41 kg/m^3, because, contrary to its name, linterp also extrapolates linearly.

 

Success!
Luc

View solution in original post

2 REPLIES 2
LucMeekes
23-Emerald III
(To:BG_9641770)

The error message is clear: linterp requires that the first argument is a vector with values in ascending order. Your vector Lv2 has values 1, 2, 4, 7, 0 and 0.

The first four values are ascending (every next value is higher than the previous), but the fifth and sixth are 0, that is less than 7.

Considering you have empty or zero values in that part of the table that you draw Lv2 from, I suggest you cut the bottom two lines (for layers 5 and 6) from the table. Then it should work.

Note that the result of the function is not 18, but 17.41 kg/m^3, because, contrary to its name, linterp also extrapolates linearly.

 

Success!
Luc

Thanks Luc thats spot on, yes changed the values in the table and it returned 17.41 kg/m^3.

 

Yes correct Luc, i have swapped the Interp out to get

 

BG_9641770_0-1645044429867.png

 

Announcements

Top Tags