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
As shown above when I tried to linear interpolate the D values corresponding to h/d values of column 1. It is showing following error, Kindly help me.
Solved! Go to Solution.
Isn't the error message self-explanatory?
The elements of the first argument vector must be in ascending order. your vector is in DEscending order, so you have to resort it (and of course also vector D (which contains constant values anyway.
What do you expect your function to return? Anything else than 0.8 for any input value?
Furthermore you should not name the function and the vector the same (D).
BTW, it would be polite if, after you asked a question here in he forum, that you come back, comment on the answers and close the thread or explain whats still missing -> what to create a table with variable value from a ... - PTC Community
Isn't the error message self-explanatory?
The elements of the first argument vector must be in ascending order. your vector is in DEscending order, so you have to resort it (and of course also vector D (which contains constant values anyway.
What do you expect your function to return? Anything else than 0.8 for any input value?
Furthermore you should not name the function and the vector the same (D).
BTW, it would be polite if, after you asked a question here in he forum, that you come back, comment on the answers and close the thread or explain whats still missing -> what to create a table with variable value from a ... - PTC Community
Thank you for your help, It worked.