Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Picking Data From Table of Values 1

Status
Not open for further replies.

LS_SMS

Mechanical
Joined
Sep 18, 2020
Messages
129
Location
US
I'm using Mathcad 8.0. I have the following table of data from a colleague.
SCREEN SHOT 1.png

I want to build this table of data in Mathcad. Then I want to pick from it for downstream calculations. In other words, downstream, if D/2h is specified as 2.8, I want to pick K1 from the table as 1.27. How do I do that?

An added step would be to linear interpolate between data points on the table. In other words, if D/2h is specified as 2.5, I want to interpolate K1 from the table as 1.13.
 
seems like you want to read that data into an array.
 
seems like you want to read that data into an array.
Perhaps that is what I need to do, but I'm kind of new and do not know how to do it. Could you share some tips?
 
You can enter the data as two column arrays, one acting as the independent variable ‘x’ and the other as the dependent ‘y’. You can then use something like the ‘cspline’ function and use that with the ‘interp’ function. This basically fits a smooth curve through your data points and permits you to interpolate.
 
Please see the attached example that uses the cspline function for interpolation as Stress_Eng suggested. I pulled the relevant pieces out of a worksheet that I made several years ago for designing traffic slabs per ACI 360R. The .zip file includes a Mathcad Prime 9.0 worksheet and a .pdf printout of the worksheet. I included three methods for reproducing the data from ACI 360R. i show them side-by-side, which is why the document is 11"x17" instead of 8.5"x11". The first method (which I use in my worksheet) uses two column vectors. The second method uses a 2xN matrix. The third method uses a Mathcad table.
 

Attachments

Thanks folks. This helped. The only tweak I made was to use the "linterp" function instead, since I want to keep it linear and simple for now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top